decoupler.get_top_targets
- decoupler.get_top_targets(logFCs, pvals, contrast, name=None, net=None, source='source', target='target', weight='weight', sign_thr=1, lFCs_thr=0.0, fdr_corr=True)
Return significant target features for a given source and contrast. If no name or net are provided, return all significant features without subsetting.
- Parameters:
- logFCsDataFrame
Data-frame of logFCs (contrasts x features).
- pvalsDataFrame
Data-frame of p-values (contrasts x features).
- namestr
Name of the source.
- contraststr
Name of the contrast (row).
- netDataFrame, None
Network data-frame. If None, return without subsetting targets by it.
- 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 adjusted p-values.
- lFCs_thrfloat
Significance threshold for logFCs.
- Returns:
- dfDataFrame
Dataframe containing the significant features.