CSIDE.population.inference: Runs population-level differential expression inference for a...

View source: R/RCTDreplicates.R

CSIDE.population.inferenceR Documentation

Runs population-level differential expression inference for a RCTD.replicates object

Description

First, CSIDE must have been run on all replicates using e.g. the run.CSIDE.replicates function.

Usage

CSIDE.population.inference(
  RCTD.replicates,
  params_to_test = NULL,
  use.groups = FALSE,
  MIN.CONV.REPLICATES = 2,
  MIN.CONV.GROUPS = 2,
  CT.PROP = 0.5,
  q_thresh = 0.01,
  log_fc_thresh = 0.4,
  normalize_expr = F
)

Arguments

RCTD.replicates

a RCTD.replicates object for which to perform population-level DE inference. Note, at least three replicates must be provided.

use.groups

(default FALSE) if TRUE, treats the replicates as having multiple groups (e.g. samples) according to the group_ids slot

MIN.CONV.REPLICATES

(default 2) the minimum number of replicates (if not use.groups) for which a gene must converge

MIN.CONV.GROUPS

(default 2) the minimum number of groups (if use.groups) for which a gene must converge

CT.PROP

(default 0.5) minimum ratio of gene expression within cell type compared to other cell types

q_thresh

(default 0.01) false discovery rate

log_fc_thresh

(default 0.4) minimum natural log estimated DE threshold

normalize_expr

(default FALSE) if TRUE, constrains total gene expression to sum to 1 in each condition

params_to_test:

(default 2 for test_mode = 'individual', all parameters for test_mode = 'categorical'). An integer vector of parameter indices to test. Note, for population mode, only the first parameter is tested.

Value

an RCTD.replicates object containing the results of the CSIDE population-level algorithm. See RCTD.replicates for documentation on the population_de_results, population_sig_gene_list, and population_sig_gene_df objects.


lulizou/spASE documentation built on May 22, 2024, 5:24 a.m.