How does useGroups
works for getMarkerFeatures
#1854
-
Hello, useGroups = 1:10%&%"Disease",
bgdGroups = 1:10%&%"Healthy", The results I got looks like this: class: SummarizedExperiment
dim: 462 10
metadata(2): MatchInfo Params
assays(7): Log2FC Mean ... AUC MeanBGD
rownames(462): 1 2 ... 461 462
rowData names(6): seqnames start ... name idx
colnames(10): 1Disease 2Disease ... 9Disease 10Disease
colData names(0): which means that each element in useGroups = "1Disease",
bgdGroups = 1:10%&%"Healthy", gives class: SummarizedExperiment
dim: 31824 1
metadata(2): MatchInfo Params
assays(7): Log2FC Mean ... AUC MeanBGD
rownames(31824): 1 2 ... 31823 31824
rowData names(6): seqnames start ... name idx
colnames(1): 1Disease
colData names(0): I just wonder if this is the expected behavior of the function? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are you worried because there is an individual column for each group in the |
Beta Was this translation helpful? Give feedback.
Are you worried because there is an individual column for each group in the
SummarizedExperiment
output? This is the expected behavior. At run time,useGroups
andbgdGroups
are used to find matched sets of cells to compare. But ArchR still reports the LogFC per group and attempts to find marker features per group. The way you are trying to use this function is analytically indistinguishable from the use case of finding marker features across multiple groups. If you want to perform a single pairwise test, then you should make a new column incellColData
and define all cells that correspond to your two groups of interest and then pass one of those groups touseGroups
and the other tobgdGroups