metataxa2subcounts {manta} | R Documentation |
A simple and easy way to pull a subcomponent transcriptome out of the metatranscriptome. This one line function is useful for those wanting to just see the count data for one species or to create a new DGE or manta object on a subset of data.
metataxa2subcounts(x, meta.lev='species', taxa.filter)
x |
a manta object. |
meta.lev |
the name of the taxinomic rank on which to subset. |
taxa.filter |
the name of the taxonomy at the meta.lev rank on which to subset. |
a count table
manta
load(system.file('extdata','PapaGO-BLAST.results-diatoms.Rdata',package='manta')) metataxa2subcounts(x, meta.lev='species', taxa.filter='Pseudo-nitzschia granii')