decoupler.plot_volcano

decoupler.plot_volcano(logFCs, pvals, name, contrast, net, top=5, source='source', target='target', weight='weight', sign_thr=0.05, lFCs_thr=0.5, figsize=(7, 5), dpi=100)

Plot logFC and p-values of a selected source by a specific contrast.

Parameters:
logFCspd.DataFrame

Data-frame of logFCs (contrasts x features).

pvalspd.DataFrame

Data-frame of p-values (contrasts x features).

namestr

Name of the source to plot.

contraststr

Name of the contrast (row) to plot.

netpd.DataFrame

Network data-frame.

topint

Number of top differentially expressed features.

sourcestr

Column name in net with source nodes.

targetstr

Column name in net with target nodes.

weightstr

Column name in net with weights.

sign_thrfloat

Significance threshold for p-values.

lFCs_thrfloat

Significance threshold for logFCs.

figsizetuple

Figure size.

dpiint

DPI resolution of figure.