de_ttest_all | R Documentation |
Given expression data in counts
, run differential
expression between droplets in one group against all others, for
each group in labels
.
These counts can be normalized, or raw counts
can be given. If providiing raw counts, set the normalize
parameter to TRUE. Returns only genes with an adjust p-value
less than p_thresh
and a log fold change greater than
logFC
.
de_ttest_all(counts, labels, normalize = TRUE, sf = 1, p_thresh = 0.05, logfc_thresh = 0, p_method = "bonferroni")
counts |
Gene by droplet sparse matrix of expression data. |
labels |
Vector of droplet labels giving the cluster that the droplet belongs to. |
normalize |
Whether to scale the droplets to sum to |
sf |
Scale the counts in each droplet to sum to this value. |
p_thresh |
Return only genes that have an adjusted p-value less than this value. |
logfc_thresh |
Return genes that have a log fold change of at least this value. |
p_method |
Adjust p-values for multiple testing using this method. |
A data frame of DE results with
gene name
difference between mu1 and mu2
log2 fold change
mean of group 1
mean of group 2
t statistic
p-value
p-value corrected for multiple testing
cluster the DE genes belong to
counts <- raw_counts(sce, type = "test") clusts <- clusters(sce) markers <- de_ttest_all(counts, clusts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.