ct.inputCheck: Check compatibility of a sample key with a supplied object
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.
A named factor, where the
levels indicate the experimental replicate
groups and the
names match the
colnames of the expression matrix contained in
level should correspond to the control samples, but obviously there is no
way to algorithmically control this.
EList, or matrix.
A logical indicating whether the objects are compatible.
#Build the sample key
sk <- ((pData()$TREATMENT_NAME), "ControlReference")
(sk) <- (pData())