This function filters molecular formulas by isotope numbers, element ratios, etc.
filter_mf_data(
mfd,
c_iso_check = FALSE,
n_iso_check = FALSE,
s_iso_check = FALSE,
ma_dev = 3,
dbe_max = 999,
dbe_o_min = -999,
dbe_o_max = 999,
mz_min = 1,
mz_max = 9999,
n_min = 0,
n_max = 999,
s_min = 0,
s_max = 999,
p_min = 0,
p_max = 999,
oc_min = 0,
oc_max = 999,
hc_min = 0,
hc_max = 999,
nc_min = 0,
nc_max = 99,
verbose = FALSE,
...
)data.table; subset of original molecular formula table
data.table with molecular formula data as derived from
ume::assign_formulas. Column names of elements/isotopes must match names in
the isotope column of ume::masses; values are integers representing
counts per formula.
(TRUE / FALSE); check if formulas are verified by the presence of the main daughter isotope
(TRUE / FALSE); check if formulas are verified by the presence of the main daughter isotope
(TRUE / FALSE); check if formulas are verified by the presence of the main daughter isotope
Deviation range of mass accuracy in +/- ppm (default: 3 ppm)
Maximum number for DBE
Minimum number for DBE minus O atoms
Maximum number for DBE minus O atoms
Minimum of mass to charge value
Maximum of mass to charge value
Minimum number of nitrogen atoms
Maximum number of nitrogen atoms
Minimum number of nitrogen atoms
Maximum number of nitrogen atoms
Minimum number of nitrogen atoms
Maximum number of nitrogen atoms
Minimum atomic ratio of oxygen / carbon
Maximum atomic ratio of oxygen / carbon
Minimum atomic ratio of hydrogen / carbon
Maximum atomic ratio of hydrogen / carbon
Minimum atomic ratio of nitrogen / carbon
Maximum atomic ratio of nitrogen / carbon
logical; if TRUE, show progress messages.
Additional arguments passed to methods.
Boris P. Koch
Other Formula subsetting:
filter_int(),
filter_mass_accuracy(),
remove_blanks(),
subset_known_mf(),
ume_assign_formulas(),
ume_filter_formulas()
filter_mf_data(mfd = mf_data_demo, dbe_o_max = 10)
Run the code above in your browser using DataLab