Title: | Quality metrics report for microarray data sets |
---|---|
Description: | This package generates microarray quality metrics reports for data in Bioconductor microarray data containers (ExpressionSet, NChannelSet, AffyBatch). One and two color array platforms are supported. |
Authors: | Audrey Kauffmann, Wolfgang Huber |
Maintainer: | Mike Smith <[email protected]> |
License: | LGPL (>= 2) |
Version: | 3.39.1 |
Built: | 2024-11-06 05:14:49 UTC |
Source: | https://github.com/grimbough/arrayQualityMetrics |
From the coordinates of the blocks of a microarray slide and the Row
and Column locations of the spots within the blocks,
addXYfromGAL
computes the X and Y coordinates of the spots of a
slide.
addXYfromGAL(x, gal.file, nBlocks, skip, ...)
addXYfromGAL(x, gal.file, nBlocks, skip, ...)
x |
is an |
gal.file |
name of the file .gal that contains the coordinates of the blocks. |
nBlocks |
number of blocks on the slide. |
skip |
number of header lines to skip when reading the gal.file. |
... |
Arguments that get passed on to |
The object x
of class AnnotatedDataFrame
will be
returned with two added columns: X and Y corresponding to the absolute
position of the probes on the array.
Audrey Kauffmann, Wolfgang Huber. Maintainer: <[email protected]>
aqm.writereport
produces a quality report (HTML document with
figures) from a list of aqmReportModule
objects.
aqm.writereport(modules, arrayTable, reporttitle, outdir)
aqm.writereport(modules, arrayTable, reporttitle, outdir)
modules |
A list of |
arrayTable |
A data.frame with array (meta)data to be displayed in the report. |
reporttitle , outdir
|
Report title and output directory - as in |
A side effect of this function is the creation of the HTML report.
Audrey Kauffmann, Wolfgang Huber
Please see the vignette Advanced topics: Customizing arrayQualityMetrics reports and programmatic processing of the output.
Please see the manual page of the module generations functions, e.g. aqm.boxplot
.
Audrey Kauffmann, Wolfgang Huber
Produce an array quality metrics report. This is the main function of the package.
arrayQualityMetrics(expressionset, outdir = reporttitle, force = FALSE, do.logtransform = FALSE, intgroup = character(0), grouprep, spatial = TRUE, reporttitle = paste("arrayQualityMetrics report for", deparse(substitute(expressionset))), ...)
arrayQualityMetrics(expressionset, outdir = reporttitle, force = FALSE, do.logtransform = FALSE, intgroup = character(0), grouprep, spatial = TRUE, reporttitle = paste("arrayQualityMetrics report for", deparse(substitute(expressionset))), ...)
expressionset |
a Bioconductor microarray dataset container. This
can be an object of
class |
outdir |
the name of the directory in which the report is created; a character of length 1. |
force |
if the directory named by |
do.logtransform |
indicates whether the data should be logarithm transformed before the analysis; a logical of length 1. |
intgroup |
the name of the sample covariate(s) used to draw
a colour side bar next to the heatmap. The first element of
|
grouprep |
deprecated. Use argument |
spatial |
indicates whether spatial plots should be made; a logical of length 1. This can be useful for large arrays (like Affymetrix hgu133Plus2) when CPU time and RAM resources of the machine would be limiting. |
reporttitle |
title for the report (character of length 1). |
... |
further arguments that will be passed on to the different
|
See the arrayQualityMetrics vignette for examples of this function.
A side effect of the function is the creation of directory named
by outdir
containing a HTML report QMreport.html
and
figures. The function also returns a list with R objects containing
the report elements for subsequent programmatic processing.
Audrey Kauffmann and Wolfgang Huber.
These functions produce objects of class
aqmReportModule
representing the various modules of the quality
report. Given a list of modules, the report
is then rendered by the aqm.writereport
function.
Most users will not call these functions directly, but will use the
function arrayQualityMetrics
, which in turns calls these
functions. The function arguments can be provided through the
...
argument of arrayQualityMetrics
.
aqm.boxplot(x, subsample=20000, outlierMethod = "KS", ...) aqm.density(x, ...) aqm.heatmap(x, ...) aqm.pca(x, ...) aqm.maplot(x, subsample=20000, Dthresh=0.15, maxNumArrays=8, nrColumns=4, ...) aqm.spatial(x, scale="rank", channels = c("M", "R", "G"), maxNumArrays=8, nrColumns=4, ...) aqm.meansd(x, ...) aqm.probesmap(x, ...) # Affymetrix specific sections aqm.pmmm(x, ...) aqm.rnadeg(expressionset, x, ...) aqm.rle(x, outlierMethod = "KS", ...) aqm.nuse(x, outlierMethod = "upperquartile", ...)
aqm.boxplot(x, subsample=20000, outlierMethod = "KS", ...) aqm.density(x, ...) aqm.heatmap(x, ...) aqm.pca(x, ...) aqm.maplot(x, subsample=20000, Dthresh=0.15, maxNumArrays=8, nrColumns=4, ...) aqm.spatial(x, scale="rank", channels = c("M", "R", "G"), maxNumArrays=8, nrColumns=4, ...) aqm.meansd(x, ...) aqm.probesmap(x, ...) # Affymetrix specific sections aqm.pmmm(x, ...) aqm.rnadeg(expressionset, x, ...) aqm.rle(x, outlierMethod = "KS", ...) aqm.nuse(x, outlierMethod = "upperquartile", ...)
x |
An object resulting from a call to |
expressionset |
An object of class |
subsample |
For efficiency, some computations are performed not on the full set of features (which can be hundreds of thousands on some arrays), but on a randomly subset whose size is indicated by this number. |
outlierMethod |
As in |
Dthresh |
In |
scale , channels
|
In |
maxNumArrays , nrColumns
|
The parameter |
... |
Will be ignored - the dots are formal arguments which
permit that all of these functions can be callled from
|
For a simple example of the aqm.*
functions, have a
look at the source code of the aqm.pca
function. Please see also
the vignette Advanced topics: Customizing arrayQualityMetrics
reports and programmatic processing of the output.
An object of class aqmReportModule
.
Audrey Kauffmann, Wolfgang Huber
The class is described in the vignette Advanced topics: Customizing arrayQualityMetrics reports and programmatic processing of the output.
Audrey Kauffmann, Wolfgang Huber
For an overview of outlier detection, please see the
corresponding section in the vignette Advanced topics: Customizing arrayQualityMetrics
reports and programmatic processing of the output.
These two functions are helper functions used by the different report
generating functions, such as aqm.boxplot
.
outliers(exprs, method = c("KS", "sum", "upperquartile")) boxplotOutliers(x, coef = 1.5)
outliers(exprs, method = c("KS", "sum", "upperquartile")) boxplotOutliers(x, coef = 1.5)
exprs |
A matrix whose columns correspond to arrays, rows to the array features. |
method |
A character string specifying the summary statistic to
be used for each column of |
x |
A vector of real numbers. |
coef |
A number is called an outlier if it is larger than the
upper hinge plus |
outliers
: with argument method="KS"
, the function first
computes for each column of exprs
(i.e. for each array)
the value of the ks.test
test statistic
between its distribution of intensities and the pooled distribution of
intensities from all arrays.
With "sum"
and "upperquartile"
, it computes the sum or
the 75 percent quantile. Subsequently, it calls boxplotOutliers
on these values to identify the outlying arrays.
boxplotOutliers
uses a criterion similar to that used in
boxplot.stats
to
detect outliers in a set of real numbers. The main difference is that
in boxplotOutliers
, only the outliers to the right
(i.e. extraordinarily large values) are detected.
For outliers
, an object of class outlierDetection
.
For boxplotOutliers
, a list with two elements:
thresh
, the threshold against which x
was compared, and
outliers
, an integer vector of indices.
Wolfgang Huber
prepdata
computes summary statistics that are useful
for all platforms; prepaffy
computes Affymetrix-specific ones. These are
helper functions used by arrayQualityMetrics
.
prepdata(expressionset, intgroup, do.logtransform) prepaffy(expressionset, x)
prepdata(expressionset, intgroup, do.logtransform) prepaffy(expressionset, x)
expressionset |
An object of class
|
intgroup , do.logtransform
|
as in
|
x |
A list, typically the result from a prior call to |
See the vignette Working with arrayQualityMetrics report sections.
A list with various derived quantities. In the case of
prepaffy
, the returned list is x
with the additional
elements appended.
Audrey Kauffmann, Wolfgang Huber