============================================= Logomaker: beautiful sequence logos in Python ============================================= Welcome to Logomaker's documentation! ===================================== Version: |version| (Built on |today|) Logomaker is a Python package for generating publication-quality sequence logos. Logomaker can generate both standard and highly customized logos illustrating the properties of DNA, RNA, or protein sequences. Logos are rendered as vector graphics embedded within native matplotlib Axes objects, making them easy to style and incorporate into multi-panel figures. The :ref:`installation`, :ref:`quickstart`, :ref:`examples`, and :ref:`tutorial` sections below are provided to help users quickly get Logomaker working for their own research needs. For more information about Logomaker, please see Tareen and Kinney (2019) [#Tareen2019]_. .. _installation: Installation -------------- Logomaker has minimal dependencies and is compatible with Python 3.8 and later. The code for Logomaker is available on `GitHub `_ under an MIT open source license. Logomaker can be installed from `PyPI `_ using the ``pip`` package manager by executing the following at the commandline: :: pip install logomaker .. _quickstart: Quick Start ----------- For a quick demonstration of Logomaker, execute the following within Python:: import logomaker logomaker.demo('fig1b') This command will generate a sequence logo representing the DNA binding specificity of CRP, a major transcription factor in *Escherichia coli*: .. image:: _static/examples_images/crp_energy_logo.png This command will also print out the code used to generate the logo. We note that the logo shown here is from Figure 1B of Tareen and Kinney (2019) [#Tareen2019]_, and that the other logos in Figure 1 can be generated in a similar manner. .. _tutorial: Tutorial -------- A tutorial is available via a series of Jupyter notebooks, each of which focuses on a different aspect of Logomaker's functionality. To run each notebook interactively, click the Binder badge below. To instead view the notebooks statically on GitHub, `click here `_. .. image:: https://mybinder.org/badge_logo.svg :target: https://mybinder.org/v2/gh/jbkinney/logomaker/master?filepath=logomaker%2Ftutorials Resources --------- .. toctree:: :maxdepth: 2 examples implementation Reference ---------- .. [#Tareen2019] Tareen A, Kinney JB (2019) Logomaker: beautiful sequence logos in Python. `Bioinformatics btz921 `_. `bioRxiv doi:10.1101/635029. `_ Contact ------- For technical assistance or to report bugs, please contact Ammar Tareen (`Email: tareen@cshl.edu `_, `Twitter: @AmmarTareen1 `_) . For more general correspondence, please contact Justin Kinney (`Email: jkinney@cshl.edu `_, `Twitter: @jbkinney `_). Links ----- - `Logomaker preprint on bioRxiv `_ - `Logomaker on GitHub `_ - `Logomaker on PyPI `_ - `Kinney Lab `_ - `Cold Spring Harbor Laboratory `_