Skip to main content

Python version of ggseqlogo. Based on plotnine (Python version of ggplot2). A derivative of plotnineSeqSuite.

Project description

Pyggseqlogo

Python version of ggseqlogo. Based on plotnine (Python version of ggplot2). A derivative of plotnineSeqSuite.

Cite this work

Cao, T., Li, Q., Huang, Y. et al. plotnineSeqSuite: a Python package for visualizing sequence data using ggplot2 style. BMC Genomics 24, 585 (2023). https://doi.org/10.1186/s12864-023-09677-8

Installation

pip install pyggseqlogo

Getting Started

from plotnine import ggplot
from plotnineseqsuite import geom_logo
from plotnineseqsuite.data import seqs_dna
from pyggseqlogo import ggseqlogo, theme_logo

The code is based on plotnineSeqSuite.

ggplot() + geom_logo(data=seqs_dna['MA0001.1']) + theme_logo()

https://caotianze.github.io/pyggseqlogo/started_1.png
Pyggseqlogo provides a wrapper function for the above code.

ggseqlogo(seqs_dna['MA0001.1'])

https://caotianze.github.io/pyggseqlogo/started_2.png
facet_wrap

ggseqlogo(seqs_dna, ncol=4)

https://caotianze.github.io/pyggseqlogo/started_3.png

Where to go next

If you want to draw more complex sequence logos or other sequence-related diagrams, we recommend visiting the plotnineSeqSuite homepage for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyggseqlogo-1.2.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyggseqlogo-1.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pyggseqlogo-1.2.0.tar.gz.

File metadata

  • Download URL: pyggseqlogo-1.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pyggseqlogo-1.2.0.tar.gz
Algorithm Hash digest
SHA256 825605060a2a176906d7e65aca1722dbc6f05c72794bafa7d1897a3b9256f437
MD5 ae46547f847476f88fd6cff54b9fd114
BLAKE2b-256 140ce6aac61e199b9ccbffbb6872f6f8aa27c13d0c047c83a28033566ee586de

See more details on using hashes here.

File details

Details for the file pyggseqlogo-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyggseqlogo-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pyggseqlogo-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4879d538441240e88d2957bfe17f25ae0cf3b244356c6f745ff1c9e7ff3256ef
MD5 85ed4a0da0509bc5fa0f05984b9a3e83
BLAKE2b-256 9e47da2e59c5652a8f30d4eceffde6cff148e2068abf09d4821b21452119f039

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page