-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathgetpspectra.Rd
31 lines (30 loc) · 1.09 KB
/
getpspectra.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\name{getpspectra}
\alias{getpspectra}
\title{Retrieve a peaklist of one or more pseudospectra}
\description{
Extract group(s) from a xsAnnotate object. Returns a peaklist as matrix with annotated peaks.
}
\usage{
getpspectra(object, grp)
}
\arguments{
\item{object}{xsAnnotate object}
\item{grp}{index of pseudo-spectra-group}
}
\details{
xsAnnotate groups LC/MS Peaklist after there EIC correlation and FWHM. These function extract one or more of these so called "pseudo spectra groups" with include the peaklist with there annotations. The annotation depends on a before called findAdducts() ( and findIsotopes() ).
Important: The indices for the isotopes, are those from the whole peaklist. See \code{getPeaklist()}.
}
\examples{
library(CAMERA)
file <- system.file('mzML/MM14.mzML', package = "CAMERA")
xs <- xcmsSet(c(file), method="centWave", ppm=30, peakwidth=c(5,10))
an <- xsAnnotate(xs)
an <- groupFWHM(an)
#For one group
peaklist <- getpspectra(an, 1)
#For two groups
peaklist <- getpspectra(an, c(1,2))
}
\author{Carsten Kuhl <[email protected]>}
\keyword{methods}