subsetFun
subsetFun |
R Documentation |
Filter results by function
Description
Create a SQM or SQMbunch object containing only the ORFs with a given function, and the contigs and bins that contain them.
Usage
subsetFun(
SQM,
fun,
columns = NULL,
ignore_case = TRUE,
fixed = FALSE,
trusted_functions_only = FALSE,
ignore_unclassified_functions = FALSE,
rescale_tpm = FALSE,
rescale_copy_number = FALSE,
recalculate_bin_stats = FALSE,
allow_empty = FALSE
)
Arguments
|
SQM or SQMbunch object to be subsetted. |
|
character. Pattern to search for in the different functional classifications. |
|
character. Restrict the search
to the provided column names
from |
|
logical Make pattern matching
case-insensitive (default
|
|
logical. If |
|
logical. If |
` ignore_unclassified_functions` |
logical. If |
|
logical. If |
|
logical. If |
|
logical. If |
|
(internal use only). |
Value
SQM or SQMbunch object containing only the requested function.
See Also
subsetTax, subsetORFs, subsetSamples, combineSQM. The
most abundant items of a particular table contained in a SQM object
can be selected with mostAbundant.
Examples
data(Hadza)
Hadza.iron = subsetFun(Hadza, "iron")
Hadza.carb = subsetFun(Hadza, "Carbohydrate metabolism")
# Search for multiple patterns using regular expressions
Hadza.twoKOs = subsetFun(Hadza, "K00812|K00813", fixed=FALSE)