Description Usage Arguments Value Author(s) See Also Examples
This plots EICs of given mz
and from the mzML (or mzXML),
with various options. Additional wrapper functions provide different ways of generating mz.
1 2 3 4 |
mzML_filePath |
Path to the mzML (or mzXML) file to extract the EICs. |
mz |
Vector of mz values to process. |
rt |
Vector of retention times to process. Set the unit with |
rt_in_sec |
Default |
names |
Optional names to belong to each |
smiles |
SMILES code of the compound of interest. |
plot_title |
If |
rt_window |
The retention time window (in seconds) for EIC extraction. This is added
to |
mz_limit |
Default 0.001. This controls the limits for EIC extraction. Choose between
using |
ppm |
Default 10 ppm is an alternative 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 ( |
takePPM |
Indicates whether ppm or mz_limit value should be used to extract EICs. |
Returns a plot in the active device and a summary output.
Emma Schymanski <emma.schymanski@uni.lu>, Michael Stravs, Benedikt Lauper
1 2 3 4 5 6 7 8 9 10 11 12 | 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"
loadList(system.file("list/NarcoticsDataset.csv",package="RMassBankData"))
smiles <- findSmiles(cmpd_id)
mz <- as.numeric(findMz(cmpd_id, mode="pH")[3])
rt <- as.numeric(findRt(cmpd_id))
plotEICs(mzML_file, mz, rt, rt_in_sec=FALSE, smiles = smiles)
plotEICs(mzML_file, mz, rt, rt_in_sec=FALSE, smiles = smiles, addMSMS=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.