RF: Relative frequencies.

View source: R/deepSNV-functions.R

RFR Documentation

Relative frequencies.

Description

Convenience function to compute the relative frequencies from a matrix with absolute counts.

Usage

RF(freq, total = FALSE)

Arguments

freq

A matrix with nucleotide counts.

total

If the nucleotide counts have columns for forward and reverse direction, return each strand sepratatelu (FALSE), or add the two (TRUE).

Value

A matrix with the relative frequencies.

Author(s)

Moritz Gerstung

Examples

data(HIVmix)
RF(test(HIVmix))[1:10,]
RF(test(HIVmix), total=TRUE)[1:10,]

gerstung-lab/deepSNV documentation built on June 3, 2022, 3:05 p.m.