Description Usage Arguments Details Value See Also Examples
View source: R/data_geNormalisationFiltering.R
Gene expression is filtered and normalised in the following steps:
Filter gene expression;
Normalise gene expression with calcNormFactors;
If performVoom = FALSE, compute counts per million (CPM) using
cpm and log2-transform values if
log2transform = TRUE;
If performVoom = TRUE, use voom to compute
log2-CPM, quantile-normalise (if method = "quantile") and estimate
mean-variance relationship to calculate observation-level weights.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | normaliseGeneExpression(
geneExpr,
geneFilter = NULL,
method = "TMM",
p = 0.75,
log2transform = TRUE,
priorCount = 0.25,
performVoom = FALSE
)
normalizeGeneExpression(
geneExpr,
geneFilter = NULL,
method = "TMM",
p = 0.75,
log2transform = TRUE,
priorCount = 0.25,
performVoom = FALSE
)
|
geneExpr |
Matrix or data frame: gene expression |
geneFilter |
Boolean: filtered genes (if |
method |
Character: normalisation method, including |
p |
percentile (between 0 and 1) of the counts that is aligned when |
log2transform |
Boolean: perform log2-transformation? |
priorCount |
Average count to add to each observation to avoid zeroes after log-transformation |
performVoom |
Boolean: perform mean-variance modelling
(using |
edgeR::calcNormFactors will be used to normalise gene
expression if method is TMM, RLE, upperquartile
or none. If performVoom = TRUE, voom will
only normalise if method = "quantile".
Available normalisation methods:
TMM is recommended for most RNA-seq data where more than half of
the genes are believed not differentially expressed between any pair of
samples;
RLE calculates the median library from the geometric mean of all
columns and the median ratio of each sample to the median library is taken as
the scale factor;
upperquartile calculates the scale factors from a given quantile
of the counts for each library, after removing genes with zero counts in all
libraries;
quantile forces the entire empirical distribution of each
column to be identical (only performed if performVoom = TRUE).
Filtered and normalised gene expression
Other functions for gene expression pre-processing:
convertGeneIdentifiers(),
filterGeneExpr(),
plotGeneExprPerSample(),
plotLibrarySize(),
plotRowStats()
1 2 | geneExpr <- readFile("ex_gene_expression.RDS")
normaliseGeneExpression(geneExpr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.