subsetBins
subsetBins |
R Documentation |
Create a SQM object containing only the requested bins, and the contigs and ORFs contained in them.
Description
Create a SQM object containing only the requested bins, and the contigs and ORFs contained in them.
Usage
subsetBins(
SQM,
bins,
trusted_functions_only = FALSE,
ignore_unclassified_functions = FALSE,
rescale_tpm = TRUE,
rescale_copy_number = TRUE,
allow_empty = FALSE
)
Arguments
|
SQM object to be subsetted. |
|
character. Vector of bins to be selected. |
|
logical. If |
` ignore_unclassified_functions` |
logical. If |
|
logical. If |
|
logical. If |
|
(internal use only). |
Value
SQM object containing only the requested bins.
See Also
subsetContigs, subsetORFs
Examples
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])