decoupler.rename_net

decoupler.rename_net(net, source='source', target='target', weight='weight')

Renames input network to match decoupleR’s format (source, target, weight).

Parameters:
netpd.DataFrame

Network in long format.

sourcestr

Column name where to extract source features.

targetstr

Column name where to extract target features.

weightstr, None

Column name where to extract features’ weights. If no weights are available, set to None.

Returns:
netRenamed pd.DataFrame network.