findNeutralLossSpecs: Find pseudospectra that contains a specific neutral loss

View source: R/xsAnnotate.R

findNeutralLossSpecsR Documentation

Find pseudospectra that contains a specific neutral loss

Description

The method searches in every pseudospectra for a distance between two ions matching a provided mass difference. It returns a boolean vector with the length equals to the number of pseudospectra, where a hit is marked with TRUE.

Usage

  findNeutralLossSpecs(object, mzdiff=NULL, mzabs=0, mzppm=10)

Arguments

object

xsAnnotate object

mzdiff

neutral loss in Dalton

mzabs

absolut allowed mass difference

mzppm

relative allowed mass difference

Details

The function needs a xsAnnotate object after groupCorr or groupFWHM.

Author(s)

Carsten Kuhl <ckuhl@ipb-halle.de>

Examples

  library(CAMERA)
  file <- system.file('mzML/MM14.mzML', package = "CAMERA")
  xs   <- xcmsSet(file, method="centWave", ppm=30, peakwidth=c(5,10))
  an   <- xsAnnotate(xs)
  an   <- groupFWHM(an)
  #Searches for Pseudspecta with water loss
  hits <- findNeutralLossSpecs(an, mzdiff=18.01, mzabs=0.01) 

sneumann/CAMERA documentation built on April 5, 2024, 2:33 a.m.