subsetTax
subsetTax |
R Documentation |
Filter results by taxonomy
Description
Create a SQM or SQMbunch object containing only the contigs with a given consensus taxonomy, the ORFs contained in them and the bins that contain them.
Usage
subsetTax(
SQM,
rank,
tax,
trusted_functions_only = FALSE,
ignore_unclassified_functions = FALSE,
rescale_tpm = TRUE,
rescale_copy_number = TRUE,
recalculate_bin_stats = FALSE,
allow_empty = FALSE
)
Arguments
|
SQM object to be subsetted. |
|
character. The taxonomic rank
from which to select the desired
taxa ( |
|
character. A taxon or vector of taxa to be selected. |
|
logical. If |
` ignore_unclassified_functions` |
logical. If |
|
logical. If |
|
logical. If |
|
logical. If |
|
(internal use only). |
Value
SQM or SQMbunch object containing only the requested taxon.
See Also
subsetFun, subsetContigs, subsetSamples, combineSQM.
The most abundant items of a particular table contained in a SQM
object can be selected with mostAbundant.
Examples
data(Hadza)
Hadza.Prevotella = subsetTax(Hadza, "genus", "Prevotella")
Hadza.Bacteroidota = subsetTax(Hadza, "phylum", "Bacteroidota")