Learn R Programming

RMassBank (version 2.0.0)

annotator.default: Generate peak annotation from peaklist

Description

Generates the PK$ANNOTATION entry from the peaklist obtained. This function is overridable by using the "annotator" option in the settings file.

Usage

annotator.default(annotation, type)

Arguments

annotation
A peak list to be annotated. Contains columns: "cpdID","formula","mzFound" ,"scan","mzCalc","dppm", "dbe","mz","int","formulaCount","parentScan","fM_factor","dppmBest", "formulaMultiplicity","intrel","mzSpec"
type
The ion type to be added to annotated formulas ("+" or "-" usually)

Value

The annotated peak table. Table colnames() will be used for the titles (preferrably don't use spaces in the column titles; however no format is strictly enforced by the MassBank data format.

Examples

Run this code
## Not run: 
# annotation <- annotator.default(annotation)
# ## End(Not run)

Run the code above in your browser using DataLab