View source: R/fileutilities.R
ct.keyCheck | R Documentation |
For many gCrisprTools functions, a sample key must be provided that specifies sample mapping to experimental groups. The sample key should be provided as a single, named factor whose names exactly correspond to the 'colnames()' of the 'ExpressionSet' containing the count data to be processed (or coercible as such). By convention, the first level corresponds to the control sample group.
This function checks whether the specified sample key is of the proper format and has properties consistent with the specified object.
ct.keyCheck(sampleKey, object)
sampleKey |
A named factor, where the |
object |
An |
Invisibly, a properly formatted 'sampleKey'.
Russell Bainer
data('es') library(limma) library(Biobase) #Build the sample key sk <- relevel(as.factor(pData(es)$TREATMENT_NAME), 'ControlReference') names(sk) <- row.names(pData(es)) ct.keyCheck(sk, es)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.