Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/BASiCS_DetectHVG_LVG.R
Functions to detect highly and lowly variable genes. If the BASiCS_Chain object was generated using the regression approach, BASiCS finds the top highly variable genes based on the posteriors of the epsilon parameters. Otherwise, the old approach is used, which initially performs a variance decomposition.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | BASiCS_DetectVG(
Chain,
Task = c("HVG", "LVG"),
PercentileThreshold = NULL,
VarThreshold = NULL,
ProbThreshold = 2/3,
EpsilonThreshold = NULL,
EFDR = 0.1,
OrderVariable = c("Prob", "GeneIndex", "GeneName"),
Plot = FALSE,
MinESS = 100,
...
)
BASiCS_DetectLVG(Chain, ...)
BASiCS_DetectHVG(Chain, ...)
|
Chain |
an object of class |
Task |
Search for highly variable genes ( |
PercentileThreshold |
Threshold to detect a percentile of variable genes
(must be a positive value, between 0 and 1).
Default: |
VarThreshold |
Variance contribution threshold
(must be a positive value, between 0 and 1). This is only used when the
BASiCS non-regression model was used to generate the Chain object.
Default: |
ProbThreshold |
Optional parameter. Posterior probability threshold
(must be a positive value, between 0 and 1). If |
EpsilonThreshold |
Threshold for residual overdispersion above which |
EFDR |
Target for expected false discovery rate related
to HVG/LVG detection. If |
OrderVariable |
Ordering variable for output.
Possible values: |
Plot |
If |
MinESS |
The minimum effective sample size for a gene to be included in the HVG or LVG tests. This helps to remove genes with poor mixing from detection of HVGs/LVGs. Default is 100. If set to NA, genes are not checked for effective sample size the tests are performed. |
... |
Graphical parameters (see |
See vignette
An object of class BASiCS_ResultVG
.
Catalina A. Vallejos cnvallej@uc.cl
Nils Eling eling@ebi.ac.uk
Vallejos, Marioni and Richardson (2015). PLoS Computational Biology.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Loads short example chain (non-regression implementation)
data(ChainSC)
# Highly and lowly variable genes detection (within a single group of cells)
DetectHVG <- BASiCS_DetectHVG(ChainSC, VarThreshold = 0.60,
EFDR = 0.10, Plot = TRUE)
DetectLVG <- BASiCS_DetectLVG(ChainSC, VarThreshold = 0.40,
EFDR = 0.10, Plot = TRUE)
# Loads short example chain (regression implementation)
data(ChainSCReg)
# Highly and lowly variable genes detection (within a single group of cells)
DetectHVG <- BASiCS_DetectHVG(ChainSCReg, PercentileThreshold = 0.90,
EFDR = 0.10, Plot = TRUE)
DetectLVG <- BASiCS_DetectLVG(ChainSCReg, PercentileThreshold = 0.10,
EFDR = 0.10, Plot = TRUE)
## Highly and lowly variable genes detection based on residual overdispersion
## threshold
DetectHVG <- BASiCS_DetectHVG(ChainSCReg, EpsilonThreshold = log(2), Plot = TRUE)
DetectLVG <- BASiCS_DetectLVG(ChainSCReg, EpsilonThreshold = -log(2), Plot = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.