Functions to detect highly and lowly variable genes
BASiCS_DetectHVG(Data, object, VarThreshold, EviThreshold = NULL,
OrderVariable = "Prob", Plot = FALSE, ...)BASiCS_DetectLVG(Data, object, VarThreshold, EviThreshold = NULL,
OrderVariable = "Prob", Plot = FALSE, ...)
an object of class BASiCS_Data-class
an object of class BASiCS_Chain-class
Variance contribution threshold (must be a positive value, between 0 and 1)
Optional parameter. Evidence threshold (must be a positive value, between 0 and 1)
Ordering variable for output. Must take values in c("GeneIndex", "Mu", "Delta", "Sigma", "Prob").
If Plot = T a plot of the gene specific expression level against HVG or LVG is generated.
Graphical parameters (see par).
BASiCS_DetectHVG returns a list of 4 elements:
TableMatrix whose columns contain
Muq.bio. For each biological gene, posterior median of gene-specific expression levels \(\mu[i]\)Deltaq.bio. For each biological gene, posterior median of gene-specific biological cell-to-cell heterogeneity hyper-parameter \(\delta[i]\)Sigmaq.bio. For each biological gene, proportion of the total variability that is due to a cell-to-cell 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. EviThresholdEvidence 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 element 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). Bayesian Analysis of Single-Cell Sequencing data.
# NOT RUN {
# See
help(BASiCS_MCMC)
# }
Run the code above in your browser using DataLab