Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/MassBankRecordeR.R
This function extracts the PK$PEAK and PK$ANNOTATION entries from a MassBank record,
returning a merged data frame containing the corresponding entries. This uses the
getMBRecordPeakAnnotations
and getMBRecordPeaks
functions.
1 | getMBPeaksAnnos(MBrecord, fixColNames=FALSE)
|
MBrecord |
File name (and path) to a valid MassBank record file. |
fixColNames |
Default |
NOTE: for this to work properly, the m/z column names must match exactly.
This has only been verified so far on records generated with RMassBank
.
Returns a data frame containing annotated peaks, or NULL
if the retrieval failed.
Emma Schymanski <emma.schymanski@uni.lu>
getMBRecordPeakAnnotations
, getMBRecordPeaks
,
fixMzIntColNames
.
1 2 3 | MBrecord <- system.file("extdata","EA020161_Diclofenac.txt",package="ReSOLUTION")
getMBPeaksAnnos(MBrecord)
getMBPeaksAnnos(MBrecord, fixColNames=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.