regvelo.plotting.regulatory_network

regvelo.plotting.regulatory_network(motif, figsize=(4, 4), **kwargs)[source]

Visualize a gene regulatory network (GRN) from a DataFrame.

Parameters:
  • motif (DataFrame) – DataFrame with regulatory edges. Expected format: [regulator, target, sign], where sign is 1 for activation and -1 for inhibition.

  • figsize (tuple[int, int]) – Figure size for the plot. Default is (4, 4).

  • **kwargs (Any) –

    Additional optional parameters:

    • inhibition_color: color for inhibition edges.

    • activation_color: color for activation edges.

    • self_activation_color: color for self-activation nodes.

    • self_inhibition_color: color for self-inhibition nodes.

    • node_color: color for nodes.

    • edge_color: color for edges.

Return type:

None

Returns:

: Nothing, just plots the figure.