-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgetPIC.kmeans.Rd
53 lines (49 loc) · 1.16 KB
/
getPIC.kmeans.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\name{getPIC.kmeans}
\alias{getPIC.kmeans}
\title{
Extract PICs from a LC-MS raw object based on optimal k-means clustering.
}
\description{
This method bases on the optimal k-means clustering of m/z values of data points in ROI. see reference for details.
}
\usage{
getPIC.kmeans(raw, level, mztol = 0.1, gap = 3, width = c(5, 60), alpha = 0.3, min_snr = 4, ...)
}
\arguments{
\item{raw}{
Raw LC-MS data object obtained by \code{LoadData} function.
}
\item{level}{
Mass traces are only retained if their maximum values are over \code{level}.
}
\item{mztol}{
The m/z range of ROI.
}
\item{gap}{
The number of gap points of a mass trace.
}
\item{width}{
The range of a mass trace.
}
\item{alpha}{
The parameter of forecasting.
}
\item{min_snr}{
Minimum signal to noise ratio.
}
\item{\dots}{
No use at present.
}
}
\value{
a LIST of:
\item{scantime}{The retention time of each scan.}
\item{pics}{The extracted mass trace.}
\item{peaks}{The detected peak of each mass trace.}
}
\references{
Ji, H., et al. "KPIC2: An Effective Framework for Mass Spectrometry-Based Metabolomics Using Pure Ion Chromatograms." Analytical Chemistry (2017).
}
\seealso{
\code{getPIC}
}