# TikZ biology examples

> Biology figures drawn in TikZ, with code: a DNA double helix, transcription and translation, sequence alignment, a de Bruijn graph and an epidemic network.

URL: https://www.labcanvas.com/tikz/examples/biology

Five figures, all from Petar Veličković’s TikZ repository: a DNA double helix, gene expression from transcription to translation, a progressive multiple sequence alignment, a de Bruijn graph of the kind used in genome assembly, and a multiplex network that couples an epidemic with the spread of awareness.

The double helix is drawn with the braids package and the de Bruijn graph with tkz-graph; the others are plain TikZ nodes and paths. For labelled cell and organ drawings, see the free LabCanvas [science diagrams](https://www.labcanvas.com/diagrams).

## Molecular biology

- **DNA double helix** (Molecular biology): MIT licence, © Petar Veličković. Source: https://github.com/PetarV-/TikZ/blob/86aee049f5355d77c598b936399e42caf8941e60/DNA/dna.tex. Code: https://www.labcanvas.com/tikz-library/code/dna-double-helix.tex
- **Gene expression: transcription and translation** (Molecular biology): MIT licence, © Petar Veličković. Source: https://github.com/PetarV-/TikZ/blob/86aee049f5355d77c598b936399e42caf8941e60/Gene%20expression/gene_expression.tex. Code: https://www.labcanvas.com/tikz-library/code/gene-expression-transcription-and-translation.tex

## Bioinformatics

- **Progressive sequence alignment** (Bioinformatics): MIT licence, © Petar Veličković. Source: https://github.com/PetarV-/TikZ/blob/86aee049f5355d77c598b936399e42caf8941e60/Progressive%20alignment/progressive_alignment.tex. Code: https://www.labcanvas.com/tikz-library/code/progressive-sequence-alignment.tex
- **De Bruijn graph** (Bioinformatics): MIT licence, © Petar Veličković. Source: https://github.com/PetarV-/TikZ/blob/86aee049f5355d77c598b936399e42caf8941e60/de%20Bruijn%20graph/de_bruijn_graph.tex. Code: https://www.labcanvas.com/tikz-library/code/de-bruijn-graph.tex

## Networks & epidemics

- **Multiplex epidemics–awareness network** (Networks & epidemics): MIT licence, © Petar Veličković. Source: https://github.com/PetarV-/TikZ/blob/86aee049f5355d77c598b936399e42caf8941e60/Multiplex%20epidemics-awareness%20network/multiplex_epidemics-awareness_network.tex. Code: https://www.labcanvas.com/tikz-library/code/multiplex-epidemics-awareness-network.tex

## Using these figures

Every figure keeps its own licence: MIT or CC0 1.0, both of which allow use, change and sharing, commercial use included. The MIT licence asks that its copyright and permission notice go with copies of the code, so each figure’s code starts with its source, author and licence; keep those lines when you reuse it. The full licence texts are on the [sources and licences page](https://www.labcanvas.com/tikz-library/credits.html).

“Open in the TikZ editor” loads the figure’s complete document into the free TikZ editor, where it is typeset with TeX Live 2026 and you can change it and download a PNG. To compile it on your own computer, save the code as a.tex file and run pdfLaTeX (or the engine the tile names) on it; LabCanvas changed the files only where needed to make each one compile on its own, as its first lines say.

Licence texts: https://www.labcanvas.com/tikz-library/credits.html
