decoupler.get_top_targets

decoupler.get_top_targets(logFCs, pvals, name, contrast, net, source='source', target='target', weight='weight', sign_thr=1, lFCs_thr=0.0)

Return significant target features for a given source and contrast.

Parameters:
logFCsDataFrame

Data-frame of logFCs (contrasts x features).

pvalsDataFrame

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

namestr

Name of the source to plot.

contraststr

Name of the contrast (row) to plot.

netDataFrame

Network data-frame.

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.

Returns:
dfDataFrame

Dataframe containing the significant targets of a given source.