RF: Relative frequencies.

Description Usage Arguments Value Author(s) Examples

View source: R/deepSNV-functions.R

Description

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

Usage

1
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

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

deepSNV documentation built on Nov. 8, 2020, 8:01 p.m.