saezlab / decoupleR

R package to infer biological activities from omics data using a collection of methods.
https://saezlab.github.io/decoupleR/
GNU General Public License v3.0
190 stars 24 forks source link

Pathway activity inference from scRNA-seq tutorial produces wrong results? #112

Closed kiwipeel closed 7 months ago

kiwipeel commented 8 months ago

Hi,

I am analyzing single cell data. I've used your tutorial for pathway activity analysis tutorial in this link below: https://saezlab.github.io/decoupleR/articles/pw_sc.html

DecoupleR

It gave me these results and I think there is some problem with it. Neutrophil cluster shows very high expression of TNF but this cluster also has the lowest TNFa pathway activity.

I also used tutorial on progeny's page and this time results give me the opposite for neutrophil cluster which is more accurate.

PauBadiaM commented 8 months ago

Hi @kiwipeel,

This could be biologically plausible since one thing is the expression of the TNFa ligand, and the other is the response to that signal which is what we infer with decoupleR. The differences observed are because old progeny uses a different enrichment method than mlm, you can try running ulm instead and see if they are comparable. Additional, you can always explore the downstream genes that are driving the response to a pathway with this plot: image You could get this plot by pseudobulking your expression at the cell type level and then plotting the pathway weights vs the observed expression. Hope this is helpful!