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,71 @@
1
+\name{MAITbuilder}
2
+\alias{MAITbuilder}
3
+\title{MAIT constructor function when using external peak data}
4
+\description{
5
+Function MAITbuilder creates a MAIT-class object for a given external data. This process allows the user to analyse external peak data through all the MAIT processing steps.
6
+}
7
+\usage{
8
+
9
+MAITbuilder(data = NULL, 
10
+            spectraID = NULL,
11
+            masses = NULL, 
12
+            rt = NULL, 
13
+            classes = NULL, 
14
+            significantFeatures = FALSE, 
15
+            spectraEstimation = FALSE, 
16
+            rtRange = 0.2,
17
+            corThresh = 0.7)
18
+}
19
+
20
+\arguments{
21
+  \item{data}{
22
+Matrix containing the peak intensity values for each sample. Each row should correspond to a peak and each column to a sample.
23
+}
24
+  \item{spectraID}{
25
+Numeric corresponding to the peak spectral grouping IDs.Two peaks having the same spectraID means that they correspond to the same spectrum.
26
+}
27
+  \item{masses}{
28
+Numeric that contains the masses of the peaks. It should be as long as the number of rows in the argument data.
29
+}
30
+  \item{rt}{
31
+Numeric that contains the retention time of the peaks. It should be as long as the number of rows in the argument data.
32
+  }
33
+\item{classes}{
34
+Character with the class labels for each sample. It should be as long as the number of columns in the argument data.
35
+  }
36
+\item{significantFeatures}{
37
+If it is set to TRUE, all the features set as an input are considered to be significant. Funcions \link{Biotransformations}, \link{identifyMetabolites}, \link{Validation}, \link{plotPCA}, \link{plotPLS}, \link{plotHeatmap}, \link{plotBoxplot} are computed on the significant features only. If it is only wanted to perform an annotation process on the external peak data, this flag should be set to TRUE.
38
+  }
39
+\item{spectraEstimation}{
40
+If it is set to TRUE, an estimation of the peak grouping into spectra is performed. This computation is based on a retention time window (set by the argument rtRange) and a correlation threshold (defined by the parameter corThresh).
41
+}
42
+\item{rtRange}{
43
+Retention time parameter used to build a window to perform an estimation of the peak grouping into spectra.
44
+}
45
+\item{corThresh}{
46
+Peak correlation value used to define a threshhol to perform an estimation of the peak grouping into spectra.
47
+}
48
+
49
+}
50
+
51
+\value{
52
+All the imput values are stored in a new MAIT object.
53
+}
54
+
55
+\examples{
56
+data(MAIT_sample)
57
+peaks<-scores(MAIT)
58
+aux<-getScoresTable(MAIT)
59
+masses<-aux$extendedTable$mz
60
+rt <- aux$extendedTable$rt
61
+classFactor <- rep(classes(MAIT),classNum(MAIT))
62
+importMAIT <- MAITbuilder (data=peaks,masses=masses,rt=rt,
63
+significantFeatures=TRUE, spectraEstimation=TRUE, rtRange=0.2,
64
+corThresh=0.7,classes=classFactor)
65
+
66
+importMAIT
67
+}
68
+
69
+
70
+\author{Francesc Fernandez,
71
+ \email{[email protected]}}