Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

compare two group interaction and sigficant pathway #315

Open
hansong798 opened this issue Nov 3, 2021 · 1 comment
Open

compare two group interaction and sigficant pathway #315

hansong798 opened this issue Nov 3, 2021 · 1 comment

Comments

@hansong798
Copy link

hansong798 commented Nov 3, 2021

Hi, thank you for your advanced tool, cellchat team!

I have a question about relative information flow bar plot like below.
When compared two group with running below code, I got the bar plot and result with p value.
rankNet(cellchat.merged, comparison = c(1, 2),mode = "comparison", stacked = T, color.use=c('#969696','#E2AE33'), return.data = T,do.stat = TRUE)

And from #123 , I have understood that pathways that have significant difference for each dataset have each dataset color and pathways that are equally important in both the datasets is in black.

However, as you see below, "MPZ","ESAM","CD96","NECTIN" pathways are in black although it has low pvalue considering 0.05 threshold.

123

1212

Did I understand wrong way?

@sqjin
Copy link
Owner

sqjin commented Nov 4, 2021

@hansong798 Here is because you have a relative contribution being 1.0. Please check the parameter tol = 0.05. If the relative change is small, we consider it as no change. Both criteria should be satisfied.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants