IsotopologueParam() creates the parameter object for annotateIsotopes().
Isotope patterns are searched within each feature group with
MetaboCoreUtils::isotopologues(), which checks both the mass differences
and the intensity ratios of the candidate peaks.
Arguments
- ppm
numeric(1)relative m/z tolerance (in ppm) passed toMetaboCoreUtils::isotopologues().- tolerance
numeric(1)absolute m/z tolerance passed toMetaboCoreUtils::isotopologues().- polarity
character(1),"positive"or"negative". Only used for the+/-suffix of the labels.- subset
integerwith the indices of the samples used to compute the representative intensity of each feature (the median over these samples). An empty vector (the default) uses all samples. Only used by theXcmsExperimentmethod.- value
character(1)the type of feature value used for the intensities, seexcms::featureValues(). Only used by theXcmsExperimentmethod.- object
an
IsotopologueParamobject.
Examples
IsotopologueParam()
#> Object of class "IsotopologueParam"
#> ppm: 10
#> tolerance: 0.005
#> polarity: positive
#> value: into
#> subset: all samples
IsotopologueParam(ppm = 5, polarity = "negative")
#> Object of class "IsotopologueParam"
#> ppm: 5
#> tolerance: 0.005
#> polarity: negative
#> value: into
#> subset: all samples