Description Usage Arguments Value
View source: R/stat_test_expression.R
Perform statistical test on median expression values across clusters and conditions. Generates p adjusted values with "BH" p.adjust method.
1 2 3 4 5 6 7 8 9 | stat_test_expression(
indata,
assay = "scaled",
grouping = "group",
feature = "condition",
clusterAssign = "cell_annotation",
test = "wilcox",
var_equal = TRUE
)
|
indata |
a |
assay |
the assay to select from the sce. |
grouping |
the sample_ids to generate the median expression from. |
feature |
the feature to test the median expression data between. |
clusterAssign |
the clustering to generate the median expression from. |
test |
either 'wilcox' calls pairwise.wilcox.test or 't_test' calls pairwise.t.test. |
var_equal |
sets the pool.sd parameter to apply welch's correction as a parameter of pairwise.t.test |
a dataframe containing the median marker expression per cluster-marker and sample along with pval and BH adjusted pvalue.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.