Description Usage Arguments Value Author(s) See Also Examples
View source: R/MetFragConfigR.R
This is a convenience wrapper to extract info for MetFrag Config files if source mass spectra are already in MassBank format.
1  | getMBRecordInfo.MetFragConfig(MBrecord,peaklist_filepath,writePeaklist=TRUE)
 | 
MBrecord | 
 Full path to the MassBank record containing peaks of interest  | 
peaklist_filepath | 
 Full path to the peaklist that will be used in the MetFrag Config file. It is recommeded to use a temporary file.  | 
writePeaklist | 
 Default   | 
Returns a list containing the peaklist filename, molecular formula, exact mass, precursor type, ion mode and retention time
Emma Schymanski <emma.schymanski@uni.lu>
getMBRecordPeaks, getMBRecordEntry, MetFragConfig
1 2 3 4  | peaklist <- system.file("extdata","EA020161_Diclofenac_peaks.txt",package="ReSOLUTION")
MBrecord <- system.file("extdata","EA020161_Diclofenac.txt",package="ReSOLUTION")
MBinfo <- getMBRecordInfo.MetFragConfig(MBrecord,peaklist, writePeaklist=FALSE)
# use writePeaklist=TRUE to create a peaklist from the MassBank record
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.