Open isaamael opened 5 days ago
If you have a single-cell level annotation in a column of colData() then you can use annotateNhoods
to assign a label to each nhood in your DA results data frame. It does this by a majority voting scheme and reports the fraction of cells in the Nhoods with that specific label.
If you want to create a beeswarm or any other nhood plots on a subset of nhoods you need to use the subset.hoods
argument for the relevant plotting function.
It sounds like you want to DE testing within a group of Nhoods? That is what the testDiffExp
function is for. You can essentially use the same variable as you did for the DA testing to get this.
Hi !
Thank you for your outstanding software. While following the tutorial for analysis, I filtered
da_result
to remove some irrelevant cell types inplotDAbeeswarm
As a consequence, groupNhoods throws the error:
The reason is that
groupNhoods
checks for equality betweenfiltering in advance causes this error. I am reporting this here in hopes it helps others.
Additionally, I have a question~
Within the same
cluster
, someNhoods
have increased/decreased after treatment, while others show no significant change. I am particularly interested in which genes lead to the different changes inNhoods
within the samecluster
. Once I obtain theNhoods
and their correspondingclusters
, can I manually annotate them instead of usinggroupNhoods
for reclassification? For example, can I assignNhoods
within the samecluster
, like C1, that have increased/unchanged/decreased to differentNhoodGroups (1/2/3)
, and then executefindNhoodGroupMarkers
among them? Is this approach reasonable?Any advice from you would be helpful!