Locate most distinguishing markers between two clusters
Source:R/annotation.R
locate_most_different_g_in_2_group.RdLocate most distinguishing markers between two clusters
Usage
locate_most_different_g_in_2_group(
sc_obj,
ident1,
ident2,
assay = "RNA",
test.use = "wilcox",
pval.adj = 0.05,
logfc = 0.5,
min.pct1 = 0.5,
max.pct2 = 0.2,
return_top_n = 1
)Arguments
- sc_obj
Seurat object
- ident1
First cluster id (string)
- ident2
Second cluster id (string)
- assay
Assay name, default "RNA"
- test.use
DE test, one of "wilcox","roc","MAST"; default "wilcox"
- pval.adj
Adjusted p-value cutoff, default 0.05
- logfc
|log2FC| cutoff, default 0.5
- min.pct1
Minimum detection pct in marker group, default 0.5
- max.pct2
Maximum detection pct in other group, default 0.2
- return_top_n
Number of top markers to return for each group, default 1.