Browse code

resolve Windows warnings occuring in the build 'file link 'MineICAParams-class' in package 'MineICA' does not exist and so has been treated as a topic'

Anne Biton authored on 23/04/2020 18:30:14
Showing 1 changed files
... ...
@@ -14,11 +14,11 @@
14 14
 }
15 15
 \arguments{
16 16
   \item{params}{An object of class
17
-  \code{\link[MineICA:MineICAParams-class]{MineICAParams}}
17
+  \code{\link[MineICA:class-MineICAParams]{MineICAParams}}
18 18
   providing the parameters of the analysis.}
19 19
 
20 20
   \item{icaSet}{An object of class
21
-  \code{\link[MineICA:IcaSet-class]{IcaSet}}.}
21
+  \code{\link[MineICA:class-IcaSet]{IcaSet}}.}
22 22
 
23 23
   \item{keepVar}{The variable labels to be considered, must
24 24
   be a subset of \code{varLabels(icaSet)}.}
Browse code

Adds MineICA, SomatiCA and lpNet to the repos.

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

Marc Carlson authored on 05/02/2013 22:15:53
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,131 @@
1
+\name{quantVarAnalysis}
2
+\alias{quantVarAnalysis}
3
+\title{Correlation between variables and components.}
4
+\usage{
5
+  quantVarAnalysis(params, icaSet, keepVar,
6
+    keepComp = indComp(icaSet),
7
+    keepSamples = sampleNames(icaSet),
8
+    adjustBy = c("none", "component", "variable"),
9
+    method = "BH", typeCor = "pearson", doPlot = TRUE,
10
+    onlySign = TRUE, cutoff = 0.4,
11
+    cutoffOn = c("cor", "pval"), colours,
12
+    path = "quantVarAnalysis/", filename = "quantVar",
13
+    typeImage = "png")
14
+}
15
+\arguments{
16
+  \item{params}{An object of class
17
+  \code{\link[MineICA:MineICAParams-class]{MineICAParams}}
18
+  providing the parameters of the analysis.}
19
+
20
+  \item{icaSet}{An object of class
21
+  \code{\link[MineICA:IcaSet-class]{IcaSet}}.}
22
+
23
+  \item{keepVar}{The variable labels to be considered, must
24
+  be a subset of \code{varLabels(icaSet)}.}
25
+
26
+  \item{keepComp}{A subset of components, must be included
27
+  in \code{indComp(icaSet)}. By default, all components are
28
+  used.}
29
+
30
+  \item{keepSamples}{A subset of samples, must be included
31
+  in \code{sampleNames(icaSet)}. By default, all samples
32
+  are used.}
33
+
34
+  \item{adjustBy}{The way the p-values of the Wilcoxon and
35
+  Kruskal-Wallis tests should be corrected for multiple
36
+  testing: \code{"none"} if no p-value correction has to be
37
+  done, \code{"component"} if the p-values have to be
38
+  corrected by component, \code{"variable"} if the p-values
39
+  have to be corrected by variable}
40
+
41
+  \item{method}{The correction method, see
42
+  \code{\link{p.adjust}} for details, default is
43
+  \code{"BH"} for Benjamini & Hochberg.}
44
+
45
+  \item{doPlot}{If TRUE (default), the plots are done, else
46
+  only tests are performed.}
47
+
48
+  \item{onlySign}{If TRUE (default), only the significant
49
+  results are plotted.}
50
+
51
+  \item{cutoff}{A threshold p-value for statistical
52
+  significance.}
53
+
54
+  \item{cutoffOn}{The value the cutoff is applied to,
55
+  either "cor" for correlation or "pval" for p-value}
56
+
57
+  \item{typeCor}{the type of correlation to be used, one of
58
+  \code{c("pearson","spearman","kendall")}.}
59
+
60
+  \item{colours}{A vector of colours indexed by the
61
+  variable levels, if missing the colours are automatically
62
+  generated using \code{\link{annot2Color}}.}
63
+
64
+  \item{path}{A directory _within resPath(params)_ where
65
+  the files containing the plots and the p-value results
66
+  will be located. Default is \code{"quantVarAnalysis/"}.}
67
+
68
+  \item{typeImage}{The type of image file to be used.}
69
+
70
+  \item{filename}{The name of the HTML file containing the
71
+  p-values of the tests, if NULL no file is created.}
72
+}
73
+\value{
74
+  Returns A data.frame of dimensions 'components x
75
+  variables' containing the p-values of the non-parametric
76
+  tests (Wilcoxon or Kruskal-Wallis tests) wich test if the
77
+  samples groups defined by each variable are differently
78
+  distributed on the components.
79
+}
80
+\description{
81
+  This function tests if numeric variables are correlated
82
+  with components.
83
+}
84
+\details{
85
+  This function writes an HTML file containing the
86
+  correlation values and test p-values as a an array of
87
+  dimensions 'variables * components' containing the
88
+  p-values of the tests. When a p-value is considered as
89
+  significant according to the threshold \code{cutoff}, it
90
+  is written in bold and filled with a link pointing to the
91
+  corresponding plot. One image is created by plot and
92
+  located into the sub-directory "plots/" of \code{path}.
93
+  Each image is named by index-of-component_var.png.
94
+}
95
+\examples{
96
+## load an example of IcaSet
97
+data(icaSetCarbayo)
98
+
99
+# build MineICAParams object
100
+params <- buildMineICAParams(resPath="carbayo/")
101
+
102
+# Define the directory containing the results
103
+dir <- paste(resPath(params), "comp2annottest/", sep="")
104
+
105
+# Check which variables are numeric looking at the pheno data, here only one  -> AGE
106
+# pData(icaSetCarbayo)
107
+
108
+## Perform pearson correlation tests and plots association corresponding
109
+# to correlation values larger than 0.2
110
+quantVarAnalysis(params=params, icaSet=icaSetCarbayo, keepVar="AGE", keepComp=1:2,
111
+                 adjustBy="none", path=dir, cutoff=0.2, cutoffOn="cor")
112
+
113
+\dontrun{
114
+## Perform Spearman correlation tests and do scatter plots for all pairs
115
+quantVarAnalysis(params=params, icaSet=icaSetCarbayo, keepVar="AGE", adjustBy="none", path=dir,
116
+                 cutoff=0.1, cutoffOn="cor", typeCor="spearman", onlySign=FALSE)
117
+
118
+## Perform pearson correlation tests and plots association corresponding
119
+# to p-values lower than 0.05 when 'doPlot=TRUE'
120
+quantVarAnalysis(params=params, icaSet=icaSetCarbayo, keepVar="AGE", adjustBy="none", path=dir,
121
+                 cutoff=0.05, cutoffOn="pval", doPlot=FALSE)
122
+}
123
+}
124
+\author{
125
+  Anne Biton
126
+}
127
+\seealso{
128
+  \code{\link{qualVarAnalysis}}, \code{\link{p.adjust}},
129
+  \code{link{writeHtmlResTestsByAnnot}}, \code{code}
130
+}
131
+