rpkg_from_rpkm: Compute RPKGs from RPKMs

Description Usage Arguments Value References

Description

Compute RPKGs from RPKMs

Usage

1
rpkg_from_rpkm(rpkm, lib, ags)

Arguments

rpkm

A matrix of RPKM's, with genes on rows and samples on columns.

lib

A vector of library sizes for each sample.

ags

A vector of estimated average genome sizes for each sample.

Value

rpkg The matrix of reads normalized according to RPKG. The definition is [# mapped reads / gene length] / [library size / AGS]. The quantity library size / AGS is called the number of genome equivalents for that sample.

References

"Average genome size estimation improves comparative metagenomics and sheds light on the functional ecology of the human microbiome" by Nayfach and Pollard.


krisrs1128/phyloseqExtend documentation built on May 20, 2019, 1:31 p.m.