Skip to content

A LaTeX package for drawing genetic construct pictograms using TikZ.

License

Notifications You must be signed in to change notification settings

tim-tx/tikz-dna

Repository files navigation

Description

This is a LaTeX package for drawing genetic construct pictograms using TikZ. Under development, there are no reusable macros at the moment.

We provide a TikZ library called dna that installs one core macro, \dnaplot.

\usetikzlibrary{dna}
\begin{tikzpicture}
  \node (dox) at (0,1) {dox};
  \dnaplot []
    features
    { [name=segment 1] {
        promoter        [name=p1],
        coding sequence [name=gA],
        terminator
      },
      [anchor=north west, right=1cm of segment 1.base east] {
        promoter        [name=p2],
        coding sequence [name=gB],
        terminator
      }
    }
    regulation { (dox) -| {gB -| p1, gA -| p2} };
\end{tikzpicture}

Gallery

Example plot

Compare this image with this gallery entry from dnaplotlib. The image above was drawn entirely in TikZ, the source is in example.tex.

License

This package is under development and provided under the LaTeX Project Public License version 1.3c. A copy of the license can be found in LICENSE.

Certain components of this package were built by reverse-engineering the TikZ graphs and shapes.arrows libraries. Under the terms of the TikZ license (the LaTeX Project Public License version 1.3c), these reverse-engineered components can be considered Derived Works not intended as replacements of the original Work. TikZ was created by Till Tantau and is available at https://www.ctan.org/pkg/pgf.

Releases

No releases published

Packages

No packages published

Languages