Description Usage Arguments Value Author(s) See Also Examples
View source: R/SuspectScreening.R
This is a wrapper for plotEICs designed for screening homologue series
built from build.homol
.
1 2 3 |
file |
Path and filename to mz(X)ML file to screen |
file_desc |
Description for the file (used in plot title and file names) |
series |
The series from |
series_name |
The name of the series (used in legend) |
adduct |
The adduct species of the homologue to screen. NOTE: the adduct must be exactly as written in the adducts table in the enviPat package. |
rt_window |
The retention time window (in seconds) for EIC extraction. This is added
to |
ppm |
The ppm limit for EIC extraction |
greyscale |
If |
smiles |
SMILES code of the compound of interest. Can also be generic SMILES (this needs to be tested...). |
formula |
A text field to put the formula of the series if no SMILES. |
addMSMS |
Indicates whether MSMS scans should be added to plot with default settings |
isLog |
If |
isPos |
Setting to pass on to |
kekulise |
Controls aromaticity detection in SMILES for plotting. |
writePDF |
Writes the plot to PDF rather than active device. PDF name is autocreated. |
writeCSV |
Writes the screen summary to CSV - file name is autocreated. |
Returns a plot in the active device, or PDF and summary output.
Emma Schymanski <emma.schymanski@uni.lu>
1 2 3 4 5 6 7 8 9 | pegs <- build.homol("C4H10O3","C2H4O","PEGS",2,14)
library(RMassBank)
library(RMassBankData)
RmbDefaultSettings()
mzML_files <- list.files(system.file("spectra", package="RMassBankData"), ".mzML", full.names = TRUE)
mzML_file <- mzML_files[1]
screen.homol(mzML_file, "test_file", pegs, "PEGS_MpH", "M+H")
screen.homol(mzML_file, "test_file", pegs, "PEGS_MpNH4", "M+NH4")
#Note this doesn't look pretty as PEGS aren't present, but does test that it works.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.