Skip to content
Graphviz (DOT) templates

Gene Regulatory Network

Toy network with activators, repressors, and feedback loops.

Template previewGraphviz (DOT)
Rendering…

Make it your own.

digraph grn {
  rankdir=LR;
  graph [bgcolor=transparent];
  node [shape=ellipse, style=filled, fillcolor="#dbeafe", fontname=Inter, fontsize=10];
  edge [fontname=Inter, fontsize=9];

  Signal [fillcolor="#fef3c7"];
  TF1 [label="TF1"];
  TF2 [label="TF2"];
  Repr [label="Repressor", fillcolor="#fee2e2"];
  GeneA [label="Gene A", shape=box];
  GeneB [label="Gene B", shape=box];
  GeneC [label="Gene C", shape=box];

  Signal -> TF1 [label="+"];
  TF1 -> GeneA [label="+"];
  TF1 -> TF2 [label="+"];
  TF2 -> GeneB [label="+"];
  GeneA -> Repr [label="produces"];
  Repr -> TF1 [label="-"];
  GeneB -> GeneC [label="+"];
  GeneC -> TF2 [label="- feedback"];
}