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