Git Product home page Git Product logo

tikz-dna's Introduction

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.

tikz-dna's People

Contributors

tim-tx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.