# Pyggseqlogo
Python version of [ggseqlogo](https://github.com/omarwagih/ggseqlogo). Based on [plotnine](https://github.com/has2k1/plotnine/) (Python version of ggplot2). A derivative of [plotnineSeqSuite](https://github.com/caotianze/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
```Python
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.
```Python
ggplot() + geom_logo(data=seqs_dna['MA0001.1']) + theme_logo()
```
![https://caotianze.github.io/pyggseqlogo/started_1.png](https://caotianze.github.io/pyggseqlogo/started_1.png)
Pyggseqlogo provides a wrapper function for the above code.
```Python
ggseqlogo(seqs_dna['MA0001.1'])
```
![https://caotianze.github.io/pyggseqlogo/started_2.png](https://caotianze.github.io/pyggseqlogo/started_2.png)
facet_wrap
```Python
ggseqlogo(seqs_dna, ncol=4)
```
![https://caotianze.github.io/pyggseqlogo/started_3.png](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](https://github.com/caotianze/plotnineseqsuite/) for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/caotianze/pyggseqlogo",
"name": "pyggseqlogo",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": "",
"keywords": "ggplot2,plotnine,ggseqlogo,Sequence logo",
"author": "Cao Tianze",
"author_email": "hnrcao@qq.com",
"download_url": "https://files.pythonhosted.org/packages/f5/c6/d9559efb527d2c1e683a0ee38ebf0e227845626e5caecfe3166af39b12b6/pyggseqlogo-1.1.0.tar.gz",
"platform": null,
"description": "# Pyggseqlogo\r\nPython version of [ggseqlogo](https://github.com/omarwagih/ggseqlogo). Based on [plotnine](https://github.com/has2k1/plotnine/) (Python version of ggplot2). A derivative of [plotnineSeqSuite](https://github.com/caotianze/plotnineseqsuite/).\r\n## Cite this work\r\nCao, 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\r\n## Installation\r\n`pip install pyggseqlogo`\r\n## Getting Started\r\n```Python\r\nfrom plotnine import ggplot\r\nfrom plotnineseqsuite import geom_logo\r\nfrom plotnineseqsuite.data import seqs_dna\r\nfrom pyggseqlogo import ggseqlogo, theme_logo\r\n```\r\nThe code is based on plotnineSeqSuite.\r\n```Python\r\nggplot() + geom_logo(data=seqs_dna['MA0001.1']) + theme_logo()\r\n```\r\n![https://caotianze.github.io/pyggseqlogo/started_1.png](https://caotianze.github.io/pyggseqlogo/started_1.png) \r\nPyggseqlogo provides a wrapper function for the above code.\r\n```Python\r\nggseqlogo(seqs_dna['MA0001.1'])\r\n```\r\n![https://caotianze.github.io/pyggseqlogo/started_2.png](https://caotianze.github.io/pyggseqlogo/started_2.png) \r\nfacet_wrap\r\n```Python\r\nggseqlogo(seqs_dna, ncol=4)\r\n```\r\n![https://caotianze.github.io/pyggseqlogo/started_3.png](https://caotianze.github.io/pyggseqlogo/started_3.png)\r\n## Where to go next\r\nIf you want to draw more complex sequence logos or other sequence-related diagrams, we recommend visiting the [plotnineSeqSuite homepage](https://github.com/caotianze/plotnineseqsuite/) for details.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python version of ggseqlogo. Based on plotnine (Python version of ggplot2). A derivative of plotnineSeqSuite.",
"version": "1.1.0",
"project_urls": {
"Bug Tracker": "https://github.com/caotianze/pyggseqlogo/issues",
"Homepage": "https://github.com/caotianze/pyggseqlogo"
},
"split_keywords": [
"ggplot2",
"plotnine",
"ggseqlogo",
"sequence logo"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f5c6d9559efb527d2c1e683a0ee38ebf0e227845626e5caecfe3166af39b12b6",
"md5": "74aa87019611169a8b884f96ecea2d87",
"sha256": "dce03536cee68ec61247f2e7e615746e49a5300e5be558fcc2dacebf46d23f8f"
},
"downloads": -1,
"filename": "pyggseqlogo-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "74aa87019611169a8b884f96ecea2d87",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 3439,
"upload_time": "2024-03-08T05:33:01",
"upload_time_iso_8601": "2024-03-08T05:33:01.236575Z",
"url": "https://files.pythonhosted.org/packages/f5/c6/d9559efb527d2c1e683a0ee38ebf0e227845626e5caecfe3166af39b12b6/pyggseqlogo-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-08 05:33:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "caotianze",
"github_project": "pyggseqlogo",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pyggseqlogo"
}