*UltraMassExplorer* (`ume`) is a package that uses exact molecular masses (derived from high-resolution mass spectrometry) to assign molecular formulas. UME provides tools to evaluate and visualize results (details described in [Leefmann et al. 2019](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/abs/10.1002/rcm.8315)). UME is also available as a graphical user interface via [UME R Shiny App](https://www.awi.de/en/ume).
*UltraMassExplorer* (`ume`) is a package that uses exact molecular masses (derived from high-resolution mass spectrometry) to assign molecular formulas. UME provides tools to evaluate and visualize results (details described in [Leefmann et al. 2019](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/abs/10.1002/rcm.8315)). UME is also available as a graphical user interface via [UME R Shiny App](https://www.awi.de/en/ume).
@@ -193,12 +170,12 @@ The most important arguments for formula filtering:
...
@@ -193,12 +170,12 @@ The most important arguments for formula filtering:
```
```
## 3. Visualization and statistics
## 3. Visualization and statistics
**(documentation to be expanded)**
**(documentation to be expanded)**
```{r eval = F, warning=FALSE}
```{r eval = F, warning=FALSE}
# Mass spectrum
# Mass spectrum
uplot.ms(pl = ume::peaklist_demo)
uplot.ms(pl = ume::peaklist_demo)
...
@@ -206,16 +183,21 @@ The most important arguments for formula filtering:
...
@@ -206,16 +183,21 @@ The most important arguments for formula filtering:
ume::calc_data_summary(mfd = ume::mf_data_demo)
ume::calc_data_summary(mfd = ume::mf_data_demo)
# Mass accuracy
# Mass accuracy
#uplot.freq_ma(mfd = ume::mf_data_demo)
uplot.freq_ma(mfd = ume::mf_data_demo)
# Element frequency
# Element frequency
uplot.freq(mfd = ume::mf_data_demo, var = "n")
uplot.freq(mfd = ume::mf_data_demo, var = "n")
# van Krevelen
# van Krevelen
uplot.vk(mfd = ume::mf_data_demo)
uplot.vk(mfd = ume::mf_data_demo)
# Precision isotope abundance:
uplot.isotope_precision(mfd = ume::mf_data_demo, col = "redblue", col_bar = T
, z_var = "nsp_tot", tf = F)
```
```
## 4. Re-calibration of peaklists
## 4. Re-calibration of peaklists
Automated calibration can be performed with existing calibration lists stored in ume::known_mf. The function "ume::calc_recalibrate_ms" assigns calibrants to the peak list and analyses the mass accuracy. Three outlier tests are performed and only those assigned calibrants that pass all three tests are used for recalibration. The recalibration is based on a linear model. The function output is a list object that contains a summary on calibrants and figures that compare the calibration status before and after recalibration. For example:
Automated calibration can be performed with existing calibration lists stored in ume::known_mf. The function "ume::calc_recalibrate_ms" assigns calibrants to the peak list and analyses the mass accuracy. Three outlier tests are performed and only those assigned calibrants that pass all three tests are used for recalibration. The recalibration is based on a linear model. The function output is a list object that contains a summary on calibrants and figures that compare the calibration status before and after recalibration. For example:
...
@@ -257,7 +239,7 @@ Automated calibration can be performed with existing calibration lists stored in
...
@@ -257,7 +239,7 @@ Automated calibration can be performed with existing calibration lists stored in
### Mass Peak List
### Mass Peak List
The mass calibrated *peak list* is the core of the UME work flow. The peak list (pl) is a table [(as R data.table)](https://www.rdocumentation.org/packages/data.table/) that contains information from one or several mass spectrometric analyses:
The mass calibrated *peak list* is the core of the `ume` work flow. The peak list (pl) is a table [(as R data.table)](https://www.rdocumentation.org/packages/data.table/) that contains information from one or several mass spectrometric analyses:
- Analytical data:
- Analytical data:
...
@@ -271,24 +253,26 @@ The mass calibrated *peak list* is the core of the UME work flow. The peak list
...
@@ -271,24 +253,26 @@ The mass calibrated *peak list* is the core of the UME work flow. The peak list
- Unique identifier for the mass spectrometric analysis (file_id)
- Unique identifier for the mass spectrometric analysis (file_id)
knitr::kable(ume::peaklist_demo[1:3], format = "html")
```
```
</div>
### Isotopic masses
### Isotopic masses
All calculated molecular masses in UME are based on the [NIST data](https://www.nist.gov/pml/atomic-weights-and-isotopic-compositions-relative-atomic-masses) and available as a data ressource in the UME package (masses.rda):
All calculated molecular masses in `ume` are based on the [NIST data](https://www.nist.gov/pml/atomic-weights-and-isotopic-compositions-relative-atomic-masses) and available as a data ressource in the package (masses.rda).
<div style="overflow-x:auto;">
Isotope information of all elements:
```{r, results = "asis", echo = "false"}
knitr::kable(ume::masses[1:3, 1:11], format = "html")
It is important to consider that the formula assignment process fundamentally depends on the content of the formula library. Predefined libraries are available on the original [UME gitlab repository](https://gitlab.com/BorisKoch/ultramassexplorer/-/tree/master/lib) but can also be constructed using an R script:
## 5. Create a custom molecular formula library
It is important to consider that the formula assignment process fundamentally depends on the content of the formula library. Predefined libraries are available on the original [UME gitlab repository](https://gitlab.com/BorisKoch/ultramassexplorer/-/tree/master/lib).