Learn R Programming

BASiCS (version 0.7.30)

BASiCS_D_TestDE: Detection of genes with changes in expression

Description

Function to assess changes in expression (mean and over-dispersion)

Usage

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, ...)

Arguments

Data

an object of class BASiCS_D_Data-class

object

an object of class BASiCS_D_Chain-class

GeneNames

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)

EpsilonM

Minimum fold change tolerance threshold for detecting changes in overall expression (must be a positive real number)

EpsilonD

Minimum fold change tolerance threshold for detecting changes in cell-to-cell biological over dispersion (must be a positive real number)

EviThresholdM

Optional parameter. Evidence threshold for detecting changes in overall expression (must be a positive value, between 0 and 1)

EviThresholdD

Optional parameter. Evidence threshold for detecting changes in cell-to-cell biological over dispersion (must be a positive value, between 0 and 1)

OrderVariable

Ordering variable for output. Must take values in c("GeneIndex", "GeneNames", "ProbDiffExp", "ProbDiffOverDisp").

GroupLabelRef

Label assigned to reference group. Default: GroupLabelRef = "Ref"

GroupLabelTest

Label assigned to reference group. Default: GroupLabelRef = "Test"

Plot

If Plot = T, error rates control rates and volcano plots are generated.

OffSet

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.

EFDR_M

Target for expected false discovery rate related to the comparison of means (default = 0.05)

EFDR_D

Target for expected false discovery rate related to the comparison of dispersions (default = 0.05)

GenesSelect

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).

Value

BASiCS_D_TestDE returns a list of 4 elements:

Table

A data.frame containing the results of the differential expression test

Mu
Vector of length q.bio. For each biological gene, posterior median of gene-specific expression levels \(\mu[i]\)
Delta
Vector of length q.bio. For each biological gene, posterior median of gene-specific biological cell-to-cell heterogeneity hyper-parameter \(\delta[i]\)
Sigma
Vector of length q.bio. For each biological gene, proportion of the total variability that is due to a cell-to-cell biological heterogeneity component.
Prob
Vector of length q.bio. For each biological gene, probability of being highly variable according to the given thresholds.
HVG
Vector of length 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.

Details

See vignette

See Also

BASiCS_D_Chain-class

Examples

Run this code
# NOT RUN {
# See vignette

# }

Run the code above in your browser using DataLab