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:
Table
Matrix whose columns contain
GeneIndex
q.bio
.
Gene index as in the order present in the analysed
SingleCellExperiment
GeneName
q.bio
.
Gene name as in the order present in the analysed
SingleCellExperiment
Mu
q.bio
. For each biological gene,
posterior median of gene-specific mean expression
parameters \(\mu_i\)Delta
q.bio
. For each biological
gene, posterior median of gene-specific biological
over-dispersion parameter \(\delta_i\)Sigma
q.bio
.
For each biological gene, proportion of the total variability
that is due to a biological heterogeneity component. Prob
q.bio
.
For each biological gene, probability of being highly variable
according to the given thresholds.HVG
q.bio
.
For each biological gene, indicator of being detected as highly
variable according to the given thresholds. ProbThreshold
Posterior probability threshold.
EFDR
Expected false discovery rate for the given thresholds.
EFNR
Expected 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