Description Usage Arguments Details Value Author(s) Examples
View source: R/summarizeReplicates.R
Function to summarise measures of a maiges
class object,
both by samples and genes.
1 2 | summarizeReplicates(object=NULL, gLabelID="GeneName", sLabelID="Sample",
funcS="mean", funcG="mean", rmBad=TRUE, keepEmpty=TRUE)
|
object |
object of class |
gLabelID |
character string giving the gene label ID to be used to summarise the data by rows. |
sLabelID |
character string giving the sample label ID to be used to summarise the data by columns. |
funcS |
character string specifying the function to be applied for sample replicates. Defaults to 'mean'. If NULL, no resume is done for samples. |
funcG |
character string specifying the function to be applied for genes (spots) replicates. Defaults to 'mean'. If NULL, no resume is done for genes.. |
rmBad |
logical indicating if you want to remove or not bad
spots, given by the slot |
keepEmpty |
logical indicating if you want to maintain spots with empty information. |
This function takes the object of class maiges
and
resume the data by spots (rows) and samples (columns).
This function returns another object of class maiges
with replicates summarised to only one observation.
Gustavo H. Esteves <gesteves@vision.ime.usp.br>
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Loading the dataset
data(gastro)
## Summarising the data (maigesNorm class), replicated samples will be
## summarised by mean and genes by median
gastro.summ = summarizeReplicates(gastro.norm, gLabelID="GeneName",
sLabelID="Sample", funcS="mean", funcG="median",
keepEmpty=FALSE, rmBad=FALSE)
## To summarise genes by mean and keep the blank spots use
gastro.summ = summarizeReplicates(gastro.norm, gLabelID="GeneName",
sLabelID="Sample", funcS="mean", funcG="mean",
keepEmpty=TRUE, rmBad=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.