View source: R/subset_methods.R
subsetBins | R Documentation |
Create a SQM object containing only the requested bins, and the contigs and ORFs contained in them.
subsetBins(
SQM,
bins,
trusted_functions_only = FALSE,
ignore_unclassified_functions = FALSE,
rescale_tpm = TRUE,
rescale_copy_number = TRUE,
allow_empty = FALSE
)
SQM |
SQM object to be subsetted. |
bins |
character. Vector of bins to be selected. |
trusted_functions_only |
logical. If |
ignore_unclassified_functions |
logical. If |
rescale_tpm |
logical. If |
rescale_copy_number |
logical. If |
allow_empty |
(internal use only). |
SQM object containing only the requested bins.
subsetContigs
, subsetORFs
data(Hadza)
# Which are the most complete bins?
topBinNames = rownames(Hadza$bins$table)[order(Hadza$bins$table[,"Completeness"],
decreasing=TRUE)][1:2]
# Subset with the most complete bin.
topBin = subsetBins(Hadza, topBinNames[1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.