Condense a microarray data object so that values for within-array replicate probes are replaced with their average.
Usage
## S3 method for class 'default':
avereps(x, ID=rownames(x), ...)
## S3 method for class 'MAList':
avereps(x, ID=NULL, \dots)
## S3 method for class 'EList':
avereps(x, ID=NULL, \dots)
Arguments
x
a matrix-like object, usually a matrix, MAList or EList object.
ID
probe identifier.
...
other arguments are not currently used.
Value
A data object of the same class as x with a row for each unique value of ID.
Details
A new data object is computed in which each probe ID is represented by the average of its replicate spots or features.
For an MAList object, the components M and A are both averaged in this way, as are weights and any matrices found in object$other.
For an MAList object, ID defaults to MA$genes$ID is that exists, otherwise to rownames(MA$M).
EList objects are similar, except that the E component is averaged instead of M and A.
If x is of mode "character", then the replicate values are assumed to be equal and the first is taken as the average.