View source: R/subset_methods.R
subsetContigs | R Documentation |
Create a SQM object containing only the requested contigs, the ORFs contained in them and the bins that contain them.
subsetContigs(
SQM,
contigs,
trusted_functions_only = FALSE,
ignore_unclassified_functions = FALSE,
rescale_tpm = FALSE,
rescale_copy_number = FALSE,
recalculate_bin_stats = TRUE,
allow_empty = FALSE
)
SQM |
SQM object to be subsetted. |
contigs |
character. Vector of contigs to be selected. |
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 object containing only the selected contigs.
subsetORFs
data(Hadza)
# Which contigs have a GC content below 40?
lowGCcontigNames = rownames(Hadza$contigs$table[Hadza$contigs$table[,"GC perc"]<40,])
lowGCcontigs = subsetContigs(Hadza, lowGCcontigNames)
hist(lowGCcontigs$contigs$table[,"GC perc"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.