pspec2metfrag: Export the putative fragments as MetFrag query files

Description Usage Arguments Details Value Author(s) Examples

View source: R/pspec2metfrag.R

Description

MetFrag is an in-silico metabolite identification system, which aims to putatively identify compounds from fragmentation MS data, expecially from tandem-MS, but also in-source fragments might give additional hints on top of the accurate mass of the precursor alone.

Usage

1
2
  pspec2metfrag(object, pspecidx=NULL, filedir=NULL) 
  pspec2metfusion(object, pspecidx=NULL, filedir=NULL) 

Arguments

object

an xsAnnotate object

pspecidx

Index of pspectra to export, if NULL then all are exported.

filedir

Directory for placement of batch query files

Details

For each spectrum in pspecidx (or all in the xsAnnotate object), for each [M] mass hypothesis, remove all non-fragment peaks (isotopes, clusters, adducts) and pass them to MetFrag and MetFusion batch query files.

Value

Returns a list

Author(s)

Carsten Kuhl <ckuhl@ipb-halle.de>

Examples

1
2
3
4
5
6
7
8
9
library(CAMERA)
file        <- system.file('mzdata/MM14.mzdata', package = "CAMERA");
xs          <- xcmsSet(file, method="centWave", ppm=30, peakwidth=c(5, 10));
an          <- xsAnnotate(xs);
an          <- groupFWHM(an);
an          <- findIsotopes(an); #optional step
an          <- findAdducts(an, polarity="positive")

pspec2metfrag(an, pspecidx=c(1))

CAMERA documentation built on Nov. 8, 2020, 4:59 p.m.