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:
- netDataFrame
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:
- netDataFrame
Renamed network.