Reference datasets (envipat.data)¶
The package bundles the R package’s reference datasets as plain CSV/TXT files.
Each dataset is a module attribute of envipat.data that is read from disk
on first access and cached afterwards, so importing the module is cheap:
import envipat.data as data
data.isotopes.shape # (308, 5)
data.resolution_list["Elite_R240000@400"]
The files were exported once from enviPat’s R datasets, with floating point
columns written at full precision, so every value round-trips bit-exactly.
The datasets are not re-exported at the top level (envipat.isotopes does not
exist), because that would load them at import time.
- envipat.data.isotopes: pandas.DataFrame¶
Isotope masses and natural abundances, 308 rows, one per isotope; R’s
data(isotopes). Columns:elementElement symbol, e.g.
"C". Labelled isotopes have their own element entries in brackets, e.g."[13]C".isotopeIsotope name, e.g.
"13C".massExact isotope mass (Da).
abundanceNatural abundance as a fraction (
1.0for the labelled entries).ratioCElement-to-carbon ratio column of the R dataset; carried over unchanged and not used by the pipeline functions.
This table is the
isotopesargument ofcheck_chemform(),isopattern()andisowrap(). Pass a modified copy to change abundances, e.g. for labelling experiments.
- envipat.data.chemforms: pandas.Series¶
107 example chemical formulas (strings, Series name
"chemform"); R’sdata(chemforms). Useful as test input for the pipeline functions.
- envipat.data.adducts: pandas.DataFrame¶
51 common ESI adducts, positive and negative mode; R’s
data(adducts). Columns:NameAdduct name, e.g.
"M+H","2M-H".calcThe mass calculation as text, e.g.
"M+1.007276".ChargeIon charge (signed integer).
MultMolecule multiplier (
2for dimers).MassMass added to (or, if negative, removed from)
Multtimes the neutral mass (Da).Ion_mode"positive"or"negative".Formula_add,Formula_dedFormula added to / deducted from the molecule, or the string
"FALSE"if nothing is added / deducted. Use them withmergeform(),check_ded()andsubform().MultiMultiplier applied to the molecular formula, for use with
multiform().
- envipat.data.resolution_list: dict[str, pandas.DataFrame]¶
31 instrument resolution calibration curves (Orbitrap, Q Exactive, TOF, …); R’s
data(resolution_list). Keyed by curve name, e.g."Elite_R240000@400", in the R order. Each value is a two-column DataFrame:mz(the R columnm/z, renamed) andR, the resolving power at that m/z. Pass one curve asresmasstoget_resolution().The available curves:
list(data.resolution_list)