saezlab / decoupler-py

Python package to perform enrichment analysis from omics data.
https://decoupler-py.readthedocs.io/
GNU General Public License v3.0
157 stars 23 forks source link

plot_network function top target #119

Closed Sophon-0 closed 4 months ago

Sophon-0 commented 5 months ago

In the plot_network function, the targets to display are chosen based on their the absolute value provided in obs multiplied by their weight in net

PauBadiaM commented 5 months ago

Hi @Sophon-0,

Indeed, you can also manually pick which targets to plot by providing a list of target genes in n_targets. Also you can just select the top positive ones by setting by_abs to False. More information here.