View source: R/averageReplicates.R
averageReplicates | R Documentation |
Average the replicates in a Spectra
object and return a new Spectra object
with fewer samples. One should probably not do this until each individual sample has been
visualized for quality control, in case it is a potential outlier.
averageReplicates(spectra, uniq)
spectra |
An object of S3 class |
uniq |
Character. A character vector containing strings representing unique sample
identifiers. The sample names will be searched for these strings, and all samples
matching a given string will be averaged and put into a new Spectra object. For
example, consider the case where samples are named
|
An object of S3 class Spectra
.
Bryan A. Hanson (DePauw University).
data(SrE.IR)
averaged <- averageReplicates(SrE.IR, uniq = c("EPO", "OO", "adSrE", "pSrE"))
sumSpectra(SrE.IR)
sumSpectra(averaged)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.