Functions to detect highly and lowly variable genes
BASiCS_DetectHVG(Chain, VarThreshold, ProbThreshold = NULL, EFDR = 0.1,
OrderVariable = "Prob", Plot = FALSE, ...)BASiCS_DetectLVG(Chain, VarThreshold, ProbThreshold = NULL, EFDR = 0.1,
OrderVariable = "Prob", Plot = FALSE, ...)
Variance contribution threshold (must be a positive value, between 0 and 1)
Optional parameter. Posterior probability threshold (must be a positive value, between 0 and 1)
Target for expected false discovery rate related to HVG/LVG detection (default = 0.10)
Ordering variable for output.
Possible values: 'GeneIndex', 'Mu',
'Delta', 'Sigma' and 'Prob'.
If Plot = TRUE error control and
expression versus HVG/LVG
probability plots are generated
Graphical parameters (see par).
BASiCS_DetectHVG returns a list of 4 elements:
TableMatrix whose columns contain
GeneIndexq.bio.
Gene index as in the order present in the analysed
SingleCellExperimentGeneNameq.bio.
Gene name as in the order present in the analysed
SingleCellExperimentMuq.bio. For each biological gene,
posterior median of gene-specific mean expression
parameters \(\mu_i\)Deltaq.bio. For each biological
gene, posterior median of gene-specific biological
over-dispersion parameter \(\delta_i\)Sigmaq.bio.
For each biological gene, proportion of the total variability
that is due to a biological heterogeneity component. Probq.bio.
For each biological gene, probability of being highly variable
according to the given thresholds.HVGq.bio.
For each biological gene, indicator of being detected as highly
variable according to the given thresholds. ProbThresholdPosterior probability threshold.
EFDRExpected false discovery rate for the given thresholds.
EFNRExpected false negative rate for the given thresholds.
BASiCS_DetectLVG produces a similar output,
replacing the column HVG by
LVG, an indicator of a gene being detected as
lowly variable according to the given thresholds.
See vignette
Vallejos, Marioni and Richardson (2015). PLoS Computational Biology.
# NOT RUN {
# See
help(BASiCS_MCMC)
# }
Run the code above in your browser using DataLab