Convert phyloseq OTU count data into DGEList for edgeR package
Source:R/Deseq2_edgeR.R
phyloseq_to_edgeR.RdConvert phyloseq OTU count data into DGEList for edgeR package
Arguments
- physeq
(required) a
phyloseq-classobject obtained using thephyloseqpackage.- group
(required) A character vector or factor giving the experimental group/condition for each sample/library. Alternatively, you may provide the name of a sample variable. This name should be among the output of
sample_variables(physeq), in which caseget_variable(physeq, group)would return either a character vector or factor. This is passed on toDGEList, and you may find further details or examples in its documentation.- method
The label of the edgeR-implemented normalization to use. See
calcNormFactorsfor supported options and details. The default option is"RLE", which is a scaling factor method proposed by Anders and Huber (2010). At time of writing, the edgeR package supported the following options to themethodargument:c("TMM", "RLE", "upperquartile", "none").- ...
Additional arguments passed on to
DGEList
Value
A DGEList object. See edgeR::estimateTagwiseDisp() for more details.