ct.prepareAnnotation {gCrisprTools} | R Documentation |
This function processes a supplied annotation object for use in a pooled screening experiment.
Originally this was processed into something special, but now it essentially returns
the original annotation object in which the geneSymbol column has been factorized. This is primarily used
internally during a call to the ct.generateResults()
function. Also performs some minor functionality checking.
ct.prepareAnnotation(ann, object = NULL, controls = TRUE, throw.error = TRUE)
ann |
A |
object |
If supplied, an object with |
controls |
The name of a value in the |
throw.error |
Logical indicating whether to throw an error when |
A new annotation data frame, usually with nontargeting controls and NA values reformatted to NoTarget
(and geneID
set to 'no_gid'
), and the "geneSymbol" column of ann
factorized. If supplied with
an object
, the gRNAs not present in the object
will be omitted.
Russell Bainer
data('ann') data('es') es <- ct.filterReads(es) newann <- ct.prepareAnnotation(ann, es)