Graphviz
[updated: Graphviz + SBOLv1.0]
1. Introduction
Graphviz is a powerful open-source tool that visualizes graphs and networks.
By implementing a few meaningful shapes, I tapped its diagramming ability to draw genetic circuits. Genetic circuit diagrams now can be specified by a simple text file. Graphviz‘s visualization algorithms handles all placements and alignments. Only the node names and edges need to be specified. Below is an example of a genetic circuit generated by Graphviz.
I was inspired to create this tool after tediously piecing together cookie-cutter shapes for the 2011 iGEM competition. For our iGEM project, a lot of sub-circuits were recycled, without a good way of recycling their corresponding diagrams. With my new node shapes in Graphviz, specifying circuit modules is as easy as a few short lines of text. With a little scripting, Graphviz lends itself to rapid genetic circuit diagram generation, and become far more efficient and powerful than copy-and-paste methods or GUI-based tools.
an update of the project is available with SBOLv compliant symbols
2. Download
The custom genetic circuit shapes are lpromoter, larrow, rpromoter, and rarrow, each corresponding to the left and right promoter and left and right arrow shapes.
They have been incorporated into the official Graphviz node shapes.
Download Graphviz from the official site
As a backup, I also host two builds. First is a in-source build, ready-to-use for Linux. It’s the stable release of Graphviz 2.28 with the added shapes. Second is a development build of Graphviz 2.29 installable on MacOS. I’ve tested it on Mac OS 10.6.8, and it works.
Linux in-source build (modified Graphviz 2.28):
Download
MacOS/Snow Leopard build (Graphviz 2.29.20120828):
Download
3. Gallery
The following images are generated with the dot tool of Graphviz. Below the images are the contents of the text files used to generate those images.
digraph g { rankdir=LR; UAS -> NCAD [arrowhead=none]; UAS [shape=rpromoter]; NCAD [shape=rectangle]; }
digraph g { rankdir=LR; a -> b [arrowhead=none]; b -> c [arrowhead=none]; c -> d [arrowhead=none]; a [shape=rpromoter label="UAS"]; b [shape=rectangle label="LacI"]; c [shape=rpromoter label="UAS"]; d [shape=rectangle label="Reporter"]; }
digraph G { rankdir=LR; node [shape=rpromoter colorscheme=rdbu5 color=1 style=filled fontcolor=3]; Hef1a; TRE; node [shape=rarrow colorscheme=rdbu5 color=5 style=filled fontcolor=3]; rtTA3; DeltamCherry; product [shape=oval style=filled colorscheme=rdbu5 color=2 label=""]; node [shape=oval style=filled colorscheme=rdbu5 color=4 fontcolor=5]; combination [label="rtTA3 + Doxycycline"]; rtTA3protein [label="rtTA3"]; subgraph cluster_0 { color=white; Hef1a -> rtTA3 [arrowhead=none]; rtTA3 -> TRE [arrowhead=none]; TRE -> DeltamCherry [arrowhead=none]; } rtTA3 -> rtTA3protein; rtTA3protein -> combination; Doxycycline -> combination; combination -> TRE; DeltamCherry -> product; Hef1a [shape=rpromoter colorscheme=rdbu5 color=1 fontcolor=3 style=filled]; rtTA3 [shape=rarrow colorscheme=rdbu5 color=5 fontcolor=3 style=filled]; TRE [shape=rpromoter colorscheme=rdbu5 color=1 fontcolor=3 style=filled]; DeltamCherry [shape=rarrow colorscheme=rdbu5 color=5 fontcolor=3 style=filled label="Delta-mCherry"]; Doxycycline [style=filled colorscheme=rdbu5 color=4 fontcolor=5]; rtTA3protein [style=filled colorscheme=rdbu5 color=4 label="rtTA3" fontcolor=5]; combination [style=filled colorscheme=rdbu5 color=4 label="rtTA + Doxcycline" fontcolor=5]; product [style=filled colorscheme=rdbu5 color=2 label=""]; }
digraph g { rankdir=LR; node [shape=rpromoter colorscheme=rdbu5 color=1 style=filled fontcolor=3]; Hef1a; TRE; UAS; Hef1aLacOid; Hef1aLacOid [label="Hef1a-LacOid"]; node [shape=rarrow colorscheme=rdbu5 color=5 style=filled fontcolor=3]; Gal4VP16; LacI; rtTA3; DeltamCherry; Gal4VP16 [label="Gal4-VP16"]; product [shape=oval style=filled colorscheme=rdbu5 color=2 label=""]; repression [shape=oval label="LacI repression" fontcolor=black style=dotted]; node [shape=oval style=filled colorscheme=rdbu5 color=4 fontcolor=5]; combination [label="rtTA3 + Doxycycline"]; LacIprotein [label="LacI"]; rtTA3protein [label="rtTA3"]; Gal4VP16protein [label="Gal4-VP16"]; subgraph cluster_0 { colorscheme=rdbu5; color=3; node [colorscheme=rdbu5 fontcolor=3]; Hef1a -> Gal4VP16 [arrowhead=none]; Gal4VP16 -> UAS [arrowhead=none]; UAS -> LacI [arrowhead=none]; LacI -> Hef1aLacOid [arrowhead=none]; Hef1aLacOid -> rtTA3 [arrowhead=none]; rtTA3 -> TRE [arrowhead=none]; TRE -> DeltamCherry [arrowhead=none] } Gal4VP16 -> Gal4VP16protein; Gal4VP16protein -> UAS; LacI -> LacIprotein; LacIprotein -> repression; repression -> Hef1aLacOid [arrowhead=tee]; IPTG -> repression [arrowhead=tee]; rtTA3 -> rtTA3protein; rtTA3protein -> combination; combination -> TRE; Doxycycline -> combination; DeltamCherry -> product; }
5. Acknowledgment
Special thanks to my friends Robert McIntyre and Dylan Holmes for helping me to compile GraphViz.
Pingback: Graphviz 2.32 + SBOLv 1.0 - Easy Drawing of promoter->gene->terminator Diagrams