Browse code

Adds MAIT/ GenomicTuples/ focalCall/ to the repos.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MAIT@95035 bc3139a8-67e5-0310-9ffc-ced21a209358

Marc Carlson authored on 06/10/2014 23:58:52
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,81 @@
1
+\name{peakAnnotation}
2
+\alias{peakAnnotation}
3
+\title{Spectra constructor and peak annotator}
4
+\description{
5
+  peakAnnotation function performs spectra building and peak annotation using the CAMERA package on a \link{MAIT-class} object, after applying the \link{sampleProcessing} function. The resultant \link{xsAnnotate} object is stored in a \link{MAIT-class} object.
6
+}
7
+\usage{
8
+peakAnnotation(MAIT.object = NULL, 
9
+               corrWithSamp = 0.7, 
10
+               perfwhm = 0.6, 
11
+               sigma = 6, 
12
+               adductTable = NULL, 
13
+               printSpectraTable = TRUE, 
14
+               corrBetSamp = 0.75,
15
+               pval = 0.05, 
16
+               calcIso = TRUE,
17
+               calcCiS = TRUE, 
18
+               calcCaS = TRUE,
19
+               graphMethod = "hcs", 
20
+               annotateAdducts = TRUE)
21
+}
22
+
23
+\arguments{
24
+  \item{MAIT.object}{
25
+A \link{MAIT-class} object where function \link{sampleProcessing} has already been applied. The output of the function is going to be an update of the same \link{MAIT-class} object.
26
+}
27
+  \item{corrWithSamp}{
28
+Correlation threshold value within samples
29
+}
30
+  \item{perfwhm}{
31
+This parameter is used to group two peaks depending on their retention time. Two peaks are considered to be coeluted if their retention time falls in a range defined as  Rt_med +/- FWHM * perfwhm. Where Rt_med is the retention time median and FWHM is the Full Width at Half Maximum. Defined this way, perfwhm is the percentage of the width of the FWHM (Full Width at Half Maximum)}
32
+  \item{sigma}{
33
+Defining the coelution range as defined in the perfwhm variable, the FWHM is obtained by the expression FWHM=SD*sigma, where SD is calculated considering the peak as normally distributed.
34
+ }
35
+  \item{adductTable}{
36
+User-defined input table to annotate the peaks. If it is set to NULL, the default MAIT table for adducts in positive polarization is selected. If its value is "negAdducts", the default MAIT table for fragments in negative polarization is chosen. By default it is set to NULL. 
37
+  }
38
+\item{printSpectraTable}{
39
+If it is set to TRUE, a three-column table is build as a csv file, where the first column shows the peak mass, the second column its retention time and the third one shows its spectral ID number. This file is saved under the project directory, in the subfolder named Tables.
40
+  }
41
+  \item{corrBetSamp}{
42
+Correlation threshold value between samples
43
+}
44
+  \item{pval}{
45
+See \link{groupCorr} function in the \pkg{CAMERA} package
46
+}
47
+  \item{calcIso}{
48
+See \link{groupCorr} function in the \pkg{CAMERA} package
49
+}
50
+  \item{calcCiS}{
51
+See \link{groupCorr} function in the \pkg{CAMERA} package
52
+}
53
+  \item{calcCaS}{
54
+See \link{groupCorr} function in the \pkg{CAMERA} package
55
+}
56
+  \item{graphMethod}{
57
+See \link{groupCorr} function in the \pkg{CAMERA} package
58
+}
59
+  \item{annotateAdducts}{
60
+If it is set to TRUE, the function will perform an adduct annotation stage.
61
+}
62
+
63
+
64
+}
65
+\value{
66
+  A \link{MAIT-class} object containing the \link{xsAnnotate-class} in the rawData slot.
67
+}
68
+\seealso{
69
+  \code{\link{xsAnnotate},\link{xsAnnotate-class}}
70
+}
71
+
72
+\examples{
73
+#Provided that the data files are saved accordingly 
74
+#in subfolders under a folder named "data" (see vignette):
75
+#MAIT<-sampleProcessing(dataDir = "data", project = "Results", snThres=2,rtStep=0.02)
76
+#MAIT<-peakAnnotation(MAIT.object = MAIT,corrWithSamp = 0.7, corrBetSamp = 0.7,perfwhm = 0.6)
77
+}
78
+
79
+\author{Francesc Fernandez,
80
+ \email{[email protected]}}
81
+\keyword{file}