View source: R/subset_methods.R
subsetTax | R Documentation |
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.
subsetTax(
SQM,
rank,
tax,
trusted_functions_only = FALSE,
ignore_unclassified_functions = FALSE,
rescale_tpm = TRUE,
rescale_copy_number = TRUE,
recalculate_bin_stats = TRUE,
allow_empty = FALSE
)
SQM |
SQM object to be subsetted. |
rank |
character. The taxonomic rank from which to select the desired taxa ( |
tax |
character. The taxon to select. |
trusted_functions_only |
logical. If |
ignore_unclassified_functions |
logical. If |
rescale_tpm |
logical. If |
rescale_copy_number |
logical. If |
recalculate_bin_stats |
logical. If |
allow_empty |
(internal use only). |
SQM or SQMbunch object containing only the requested taxon.
subsetFun
, subsetContigs
, subsetSamples
, combineSQM
. The most abundant items of a particular table contained in a SQM object can be selected with mostAbundant
.
data(Hadza)
Hadza.Prevotella = subsetTax(Hadza, "genus", "Prevotella")
Hadza.Bacteroidota = subsetTax(Hadza, "phylum", "Bacteroidota")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.