Usage
qualVarAnalysis(params, icaSet, keepVar, keepComp = indComp(icaSet), keepSamples = sampleNames(icaSet), adjustBy = c("none", "component", "variable"), method = "BH", doPlot = TRUE, typePlot = "density", addPoints = FALSE, onlySign = TRUE, cutoff = params["pvalCutoff"], colours = annot2col(params), path = "qualVarAnalysis/", filename = "qualVar", typeImage = "png")
Arguments
params
An object of class
MineICAParams
providing the parameters of the analysis. keepVar
The variable labels to be considered, must
be a subset of varLabels(icaSet)
.
keepComp
A subset of components, must be included
in indComp(icaSet)
. By default, all components are
used.
keepSamples
A subset of samples, must be included
in sampleNames(icaSet)
. By default, all samples
are used.
adjustBy
The way the p-values of the Wilcoxon and
Kruskal-Wallis tests should be corrected for multiple
testing: "none"
if no p-value correction has to be
done, "component"
if the p-values have to be
corrected by component, "variable"
if the p-values
have to be corrected by variable
method
The correction method, see
p.adjust
for details, default is
"BH"
for Benjamini & Hochberg. doPlot
If TRUE (default), the plots are done, else
only tests are performed.
addPoints
If TRUE, points are superimposed on the
boxplot.
typePlot
The type of plot, either "density"
or "boxplot"
.
onlySign
If TRUE (default), only the significant
results are plotted.
cutoff
A threshold p-value for statistical
significance.
colours
A vector of colours indexed by the
variable levels, if missing the colours are automatically
generated using annot2Color
. path
A directory _within resPath(params)_ where
the files containing the plots and the p-value results
will be located. Default is "qualVarAnalysis/"
.
typeImage
The type of image file to be used.
filename
The name of the HTML file containing the
p-values of the tests, if NULL no file is created.