ct.inputCheck: Check compatibility of a sample key with a supplied object

Description Usage Arguments Value Author(s) Examples

Description

For many gCrisprTools functions, a sample key must be provided that specifies sample mapping to experimental groups and specifies which of these contains control samples. This function checks whether the specified sample key is of the proper format and has properties consistent matching the specified object.

Usage

1
ct.inputCheck(sampleKey, object)

Arguments

sampleKey

A named factor, where the levels indicate the experimental replicate groups and the names match the colnames of the expression matrix contained in object. The first level should correspond to the control samples, but obviously there is no way to algorithmically control this.

object

An ExpressionSet, EList, or matrix.

Value

A logical indicating whether the objects are compatible.

Author(s)

Russell Bainer

Examples

1
2
3
4
5
6
7
8
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.inputCheck(sk, es)


Search within the gCrisprTools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.