Description Usage Arguments Value Author(s) See Also Examples
View source: R/NormalizeBySlope.R
This function normalizes Crispr gRNA abundance estimates contained in an ExpressionSet
object.
Currently four normalization methods are implemented: median scaling (via normalizeMedianValues
), slope-based
normalization (via ct.normalizeBySlope()
), scaling to the median of the nontargeting control values (via
ct.normalizeNTC()
), and spline fitting to the distribution of the nontargeting gRNAs (via ct.normalizeSpline()
).
Because of the peculiarities of pooled Crispr screening data, these implementations may be more stable than the endogenous methods
used downstream by voom. See the respective man pages for further details about specific normalization approaches.
1 2 3 4 5 6 7 8 9 |
eset |
An ExpressionSet object with integer count data extractable with |
method |
The normalization method to use. |
annotation |
The annotation object for the library, required for the methods employing nontargeting controls. |
sampleKey |
An (optional) sample key, supplied as an ordered factor linking the samples to experimental
variables. The |
lib.size |
An optional vector of voom-appropriate library size adjustment factors, usually calculated with |
plot.it |
Logical indicating whether to plot the ranked log2 gRNA count distributions before and after normalization. |
... |
Other parameters to be passed to the individual normalization methods. |
A renormalized ExpressionSet. If specified, the sample level counts will be scaled so as to maintain the validity
of the specified lib.size
values.
Russell Bainer
ct.normalizeMedians
, ct.normalizeBySlope
, ct.normalizeNTC
, ct.normalizeSpline
1 2 3 4 5 6 7 8 9 10 11 12 | data('es')
data('ann')
#Build the sample key as needed
library(Biobase)
sk <- ordered(relevel(as.factor(pData(es)$TREATMENT_NAME), "ControlReference"))
names(sk) <- row.names(pData(es))
es.norm <- ct.normalizeGuides(es, 'scale', annotation = ann, sampleKey = sk, plot.it = TRUE)
es.norm <- ct.normalizeGuides(es, 'slope', annotation = ann, sampleKey = sk, plot.it = TRUE)
es.norm <- ct.normalizeGuides(es, 'controlScale', annotation = ann, sampleKey = sk, plot.it = TRUE, geneSymb = 'NoTarget')
es.norm <- ct.normalizeGuides(es, 'controlSpline', annotation = ann, sampleKey = sk, plot.it = TRUE, geneSymb = 'NoTarget')
|
PANTHER.db version 1.0.3
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.