View source: R/GenerateMassTraceList.R
get_mz_table | R Documentation |
This is basically a wrapper-function around the enviPat package. It takes a table with columns "molecule", "SumForm_c" and "main_adduct" and calculates theoretical m/z values and abundances for isotopologues down to a user-defined abundance threshold.
get_mz_table(
DT,
instrumentRes,
RelInt_threshold = 0.05,
stick_method = "intensoid",
adducts,
isotopes,
screening_adducts = NULL
)
DT |
data.table with columns "molecule", "SumForm_c", "adduct_c". Additional columns with "user.rtmin", and "user.rtmax" (start and end times of peaks in seconds won't be required by this, but the next function in the mzRAPP pipeline so it is recommended to add them already here.) (see details) |
instrumentRes |
data frame with mz vs resolution dependence (see |
RelInt_threshold |
relative abundance of the lowest isotopologue to be considered as percentage |
stick_method |
method that should be used to calculate discrete m/z values from calculated profile pattern e.g. "intensoid" (see |
adducts |
data frame containing adducts (see |
isotopes |
data frame containing isotopes (see |
screening_adducts |
vector of adduct names to be added for all molecules (if not already in the provided DT) |
Make sure that molecular formulas in column "SumForm_c" only contain valid molecular formulas as described in check_chemform
. Otherwise, the function might never complete. Additional columns in DT will be retained in the output of the function. However, the column names "adduct", "isoab", "formula", "charge" and "mz" are reserved.
data.table with columns "molecule", "formula", "adduct", "charge", "m/z" and "abundance"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.