networkcommons.methods.run_signalingprofiler
- networkcommons.methods.run_signalingprofiler(sources, measurements, graph, layers, max_length, betaWeight=0.2, solver=None, verbose=False)
Contextualize networks by the SignalingProfiler algorithm.
Generates a hierarchical (multi)layered network from source nodes defining layers by distinguishing measured nodes by molecular function and run the Vanilla Carnival algorithm via CORNETO to retrieve sign-coherent edges with nodes measured activity.
- Parameters:
sources (
dict) – A dictionary containing the sources and sign of perturbation.measurements (
dict) – A dictionary containing the targets and sign of measurements.graph (
Graph) – The network.layers (
int) – specifies the number of layers to generate. Must be > 0 and < 4.max_length (
int|list[int]) – The depth cutoff for finding paths. If layers is 1, this should be an int. For 2 or 3, it should be a list of ints.
- Return type:
Graph- Returns:
The constructed multi-layered network.