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,128 @@
1
+\name{qualVarAnalysis}
2
+\alias{qualVarAnalysis}
3
+\title{Tests association between qualitative variables and components.}
4
+\usage{
5
+  qualVarAnalysis(params, icaSet, keepVar,
6
+    keepComp = indComp(icaSet),
7
+    keepSamples = sampleNames(icaSet),
8
+    adjustBy = c("none", "component", "variable"),
9
+    method = "BH", doPlot = TRUE, typePlot = "density",
10
+    addPoints = FALSE, onlySign = TRUE,
11
+    cutoff = params["pvalCutoff"],
12
+    colours = annot2col(params), path = "qualVarAnalysis/",
13
+    filename = "qualVar", 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{addPoints}{If TRUE, points are superimposed on the
49
+  boxplot.}
50
+
51
+  \item{typePlot}{The type of plot, either \code{"density"}
52
+  or \code{"boxplot"}.}
53
+
54
+  \item{onlySign}{If TRUE (default), only the significant
55
+  results are plotted.}
56
+
57
+  \item{cutoff}{A threshold p-value for statistical
58
+  significance.}
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{"qualVarAnalysis/"}.}
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 the groups of samples formed by
82
+  the variables are differently distributed on the
83
+  components, in terms of contribution value (i.e of values
84
+  in matrix \code{A(icaSet)}). The distribution of the
85
+  samples on the components are represented using either
86
+  density plots of boxplots. It is possible to restrict the
87
+  tests and the plots to a subset of samples and/or
88
+  components.
89
+}
90
+\details{
91
+  This function writes an HTML file containing the results
92
+  of the tests as a an array of dimensions 'variables *
93
+  components' containing the p-values of the tests. When a
94
+  p-value is considered as significant according to the
95
+  threshold \code{cutoff}, it is written in bold and filled
96
+  with a link pointing to the corresponding plot. One image
97
+  is created by plot and located into the sub-directory
98
+  "plots/" of \code{path}. Each image is named by
99
+  index-of-component_var.png. Wilcoxon or Kruskal-Wallis
100
+  tests are performed depending on the number of groups of
101
+  interest in the considered variable (argument
102
+  \code{keepLev}).
103
+}
104
+\examples{
105
+## load an example of IcaSet
106
+data(icaSetCarbayo)
107
+
108
+## build MineICAParams object
109
+params <- buildMineICAParams(resPath="carbayo/")
110
+
111
+## Define the directory containing the results
112
+dir <- paste(resPath(params), "comp2annot/", sep="")
113
+
114
+## Run tests, make no adjustment of the p-values,
115
+# for variable grade and components 1 and 2,
116
+# and plot boxplots when 'doPlot=TRUE'.
117
+qualVarAnalysis(params=params, icaSet=icaSetCarbayo, adjustBy="none", typePlot="boxplot",
118
+                keepVar="GRADE", keepComp=1:2, path=dir, doPlot=FALSE)
119
+}
120
+\author{
121
+  Anne Biton
122
+}
123
+\seealso{
124
+  , \code{\link{qualVarAnalysis}}, \code{\link{p.adjust}},
125
+  \code{link{writeHtmlResTestsByAnnot}},
126
+  \code{wilcox.test}, \code{kruskal.test}
127
+}
128
+