Function to assess changes in expression (mean and over-dispersion)
BASiCS_D_TestDE(Data, object, GeneNames, EpsilonM = 0.1, EpsilonD = 0.1,
EviThresholdM = NULL, EviThresholdD = NULL,
OrderVariable = "ProbDiffExp", GroupLabelRef = "Ref",
GroupLabelTest = "Test", Plot = FALSE, OffSet = FALSE, EFDR_M = 0.05,
EFDR_D = 0.05, GenesSelect = NULL, ...)
an object of class BASiCS_D_Data-class
an object of class BASiCS_D_Chain-class
Vector containing gene names to be used in results table (argument to be removed as 'GeneNames' will be an slot of `BASiCS_D_Data` object)
Minimum fold change tolerance threshold for detecting changes in overall expression (must be a positive real number)
Minimum fold change tolerance threshold for detecting changes in cell-to-cell biological over dispersion (must be a positive real number)
Optional parameter. Evidence threshold for detecting changes in overall expression (must be a positive value, between 0 and 1)
Optional parameter. Evidence threshold for detecting changes in cell-to-cell biological over dispersion (must be a positive value, between 0 and 1)
Ordering variable for output. Must take values in c("GeneIndex", "GeneNames", "ProbDiffExp", "ProbDiffOverDisp")
.
Label assigned to reference group. Default: GroupLabelRef = "Ref"
Label assigned to reference group. Default: GroupLabelRef = "Test"
If Plot = T
, error rates control rates and volcano plots are generated.
Optional argument to remove a fix offset effect (if not previously removed from the MCMC chains). This argument will be removed shorly, once offset removal is built as an internal step.
Target for expected false discovery rate related to the comparison of means (default = 0.05)
Target for expected false discovery rate related to the comparison of dispersions (default = 0.05)
Optional argument to provide a user-defined list of genes to be considered for the comparison (default = NULL). When used, this argument must be a vector of 'TRUE' (include gene) / 'FALSE' (exclude gene) indicator, with the same length as the number of intrinsic genes and following the same order as how genes are displayed in the table of counts. This argument is necessary in order to have a meaningful EFDR calibration when the user decides to exclude some genes from the comparison.
Graphical parameters (see par
).
BASiCS_D_TestDE
returns a list of 4 elements:
Table
A data.frame
containing the results of the differential expression test
Mu
q.bio
. For each biological gene, posterior median of gene-specific expression levels \(\mu[i]\)Delta
q.bio
. For each biological gene, posterior median of gene-specific biological cell-to-cell heterogeneity hyper-parameter \(\delta[i]\)Sigma
q.bio
. For each biological gene, proportion of the total variability that is due to a cell-to-cell 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. EviThreshold
Evidence thresholds.
EFDR
Expected false discovery rate for the given thresholds.
EFNR
Expected false negative rate for the given thresholds.
See vignette
# NOT RUN {
# See vignette
# }
Run the code above in your browser using DataLab