combineSQM
combineSQM |
R Documentation |
Combine several SQM objects
Description
Combine an arbitrary number of SQM objects into a single SQM object (if
the input objects contain the same samples, i.e. they come from the same
SqueezeMeta run) or a single SQMbunch object. For combining results from
sqm_reads.pl or sqm_longreads.pl please check combineSQMlite. The
parameters below (other than …) will take only effect if the input
objects contain the same samples. Otherwise the input objects will be
taken as they are, with no recalculation of taxonomy, function or
rescaling,
Usage
combineSQM(
...,
tax_source = "orfs",
trusted_functions_only = FALSE,
ignore_unclassified_functions = FALSE,
rescale_tpm = TRUE,
rescale_copy_number = TRUE,
recalculate_bin_stats = TRUE
)
Arguments
|
an arbitrary number of SQM objects. Alternatively, a single list containing an arbitrary number of SQM objects. |
|
character, source data used for
the taxonomy tables present in
|
|
logical. If |
|
logical. If |
|
logical. If |
|
logical. If |
|
logical. If |
Value
A SQM or SQMbunch object
See Also
subsetFun, subsetTax, combineSQMlite
Examples
data(Hadza)
# Select Carbohydrate metabolism ORFs in Bacteroidota,
# and Amino acid metabolism ORFs in Proteobacteria
bact = subsetTax(Hadza, "phylum", "Bacteroidota")
bact.carb = subsetFun(bact, "Carbohydrate metabolism")
baci = subsetTax(Hadza, "phylum", "Bacillota")
baci.amins = subsetFun(baci, "Amino acid metabolism")
bact.carb_proteo.amins = combineSQM(bact.carb, baci.amins, rescale_copy_number=FALSE)