Description Usage Arguments Value Author(s) See Also Examples
This plots EICs of adducts in adduct_list
from the mzML (or mzXML)
and smiles
given, with various options. Adduct masses are calculated from the
smiles
using getSuspectMasses
via rcdk
. Labelling
will not be processed correctly. Adducts that cannot be calculated (especially in negative mode)
are automatically skipped. Uses plotEICs
behind the scenes.
1 2 3 |
mzML_filePath |
Path to the mzML (or mzXML) file to extract the EICs. |
smiles |
SMILES code of the compound of interest. |
adduct_list |
Vector of adducts to process, matching entries in the |
rt |
The retention time (in seconds) to centre EIC extraction. If unknown, set
|
rt_in_sec |
Default |
plot_title |
If |
rt_window |
The retention time window (in seconds) for EIC extraction. This is added
to |
isPos |
|
isLog |
If |
isSwitching |
If |
greyscale |
If |
colours |
Used to define EIC colours. If |
cpdID |
If given, this is used in the output. Otherwise a value of 1 is assigned. |
ymin_log |
This defines the y axis intercept for log plots, for aesthetic reasons. Should be
just under the |
switchShift |
If |
kekulise |
Controls aromaticity detection in SMILES for plotting. |
addMSMS |
Indicates whether MSMS scans should be added to plot with default settings |
newRMB |
Indicates whether new RMassBank version is used for MS/MS retrieval ( |
Returns a plot in the active device and a summary output.
Emma Schymanski <emma.schymanski@uni.lu>, Michael Stravs, Benedikt Lauper
getSuspectMasses
, findEIC
, plotEICs
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | pos_add <- c("M+H", "M+", "M+Na", "M+K", "M+NH4")
neg_add <- c("M-H", "M-", "M+FA-H", "M+Cl", "M-H2O-H")
library(RMassBank)
library(RMassBankData)
RmbDefaultSettings()
mzML_files <- list.files(system.file("spectra", package="RMassBankData"), ".mzML", full.names = TRUE)
mzML_file <- mzML_files[1]
cmpd_id <- "2818"
mzML_file <- mzML_files[5]
cmpd_id <- "2822"
loadList(system.file("list/NarcoticsDataset.csv",package="RMassBankData"))
smiles <- findSmiles(cmpd_id)
rt <- as.numeric(findRt(cmpd_id))
plotAdductEICs(mzML_file, pos_add, rt, rt_in_sec=FALSE, smiles = smiles)
plotAdductEICs(mzML_file, pos_add, rt, rt_in_sec=FALSE, smiles = smiles, addMSMS=TRUE)
# at this stage, log plots are not working properly...
plotAdductEICs(mzML_file, pos_add, rt, rt_in_sec=FALSE, smiles = smiles, isLog=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.