saezlab / liana-py

LIANA+: an all-in-one framework for cell-cell communication
http://liana-py.readthedocs.io/
GNU General Public License v3.0
134 stars 15 forks source link

Clarifications Differential analysis vignette #118

Open maximelepetit opened 3 weeks ago

maximelepetit commented 3 weeks ago

Hi !

I would like to explore interaction which the ligand is deregulated while the receptor is not, the opposite or such where they are deregulated in opposite directions.

I don't understand how can i deal it with ...

Can you help me ?

Thanks in advance.

Maxime

dbdimitrov commented 3 weeks ago

Hi @maximelepetit,

You should have that information in the lr_res - i.e. you can consider only the stats (e.g. logFC or p-values) of the ligand or receptor, rather than the interaction.

Is this what you mean? Or are you interested in basically also including opposite direction of change in your interaction ranking? In this case, you could e.g. compute a product of the logFC or Wald Statistics, which would give you something that you could sort the interactions by regardless if they are sign-consistent.

Hope this helps.