View source: R/NormalizeBeta.R
NormalizeBeta | R Documentation |
Two normalization methods are available. cell_cycle
method normalizes gene beta scores
based on positive control genes in CRISPR screening. loess
method normalizes gene
beta scores using loess.
NormalizeBeta(
beta,
id = 1,
method = "cell_cycle",
posControl = NULL,
samples = NULL,
org = "hsa"
)
beta |
Data frame. |
id |
An integer specifying the column of gene. |
method |
Character, one of 'cell_cycle'(default) and 'loess'. or character string giving the name of the table column containing the gene names. |
posControl |
A character vector, specifying a list of positive control genes. |
samples |
Character vector, specifying the sample names in beta columns. If NULL (default), take all beta columns as samples. |
org |
"hsa", "mmu", "bta", "cfa", "ptr", "rno", or "ssc" indicating the organism. |
In CRISPR screens, cells treated with different conditions (e.g., with or without drug)
may have different proliferation rates. So it's necessary to normalize the proliferation rate
based on defined positive control genes among samples. After normalization, the beta scores are
comparable across samples. loess
is another optional normalization method, which is used
to normalize array data before.
A data frame with same format as input data beta.
Wubing Zhang
file3 = file.path(system.file("extdata", package = "MAGeCKFlute"),
"testdata/mle.gene_summary.txt")
dd = ReadBeta(file3)
## Not run:
#Cell Cycle normalization
dd_essential = NormalizeBeta(dd, method="cell_cycle", org = "mmu")
head(dd_essential)
## End(Not run)
#Optional loess normalization (not recommended)
dd_loess = NormalizeBeta(dd, method="loess")
head(dd_loess)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.