Skip to main content

to create figures for biology.

Project description

# Bioplot

Biotplot aims to help to draw amnio acid sequences with your defined colors.

## Requirements

* matplotlib > 3.0.2

## how to install

```
$ pip install bioplot
```

## how to use

```python
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111)
bplot = Bioplot(ax)

seq = "MEKEKKVKYFLRKSAFGLASVSAAFLVGSTVFAVDSPIEDTPIIRNGGELTNLLGNSETTLALRNEESATADLTAAAVADTVAAAAAENAGAAAWEAAAAADALAKAKADALKEFNKYGVSDYYKNLINNAKTVEGVKDLQAQVVESAKKARISEATDGLSDFLKSQTPAEDTVKSIELAEAKVLANRELDKYGVSDYHKNLINNAKTVEGVKDLQAQVVESAKKARISEATDGLSDFLKSQTPAEDTVKSIELAEAKVLANRELDKYGVSDYYKNLINNAKTVEGVKALIDEILAALPKTDTYKLILNGKTLKGETTTEAVDAATAEKVFKQYANDNGVDGEWTYDDATKTFTVTEKPEVIDASELTPAVTTYKLVINGKTLKGETTTEAVDAATAEKVFKQYANDNGVDGEWTYDDATKTFTVTEKPEVIDASELTPAVTTYKLVINGKTLKGETTTKAVDAETAEKAFKQYANDNGVDGVWTYDDATKTFTVTEMVTEVPGDAPTEPEKPEASIPLVPLTPATPIAKDDAKKDDTKKEDAKKPEAKKEDAKKAETLPTTGEGSNPFFTAAALAVMAGAGALAVASKRKED"
colors = np.random.randn(len(seq))

bplot.aaplot2d(seq, colors=colors, max_width=20)
plt.savefig("example.png")
```

## sample

![sample](https://github.com/0h-n0/bioplot/raw/master/asset/example.png "sample")


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

bioplot-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

bioplot-0.0.2-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bioplot-0.0.2.tar.gz.

File metadata

  • Download URL: bioplot-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for bioplot-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b6d0d327bfc46ce179deb30494a1a4ec86fec84af6762a40c2323b48ee8bf41b
MD5 05cebe60da639c298706c743bdb11593
BLAKE2b-256 58d14c169c5adf0c8ba8ce360b9c7326f2d7075205c0d37121de82242a8ffb8e

See more details on using hashes here.

File details

Details for the file bioplot-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: bioplot-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for bioplot-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fd9bb7ed959fd034d78d66d83c52c7e86aec3ebe21f145c496ebaf85dd709d29
MD5 55da0ec6b90519ab6969f0c1e4974a3d
BLAKE2b-256 42bc9ccb523d5caf7fe57c97b3112b4e39978dad6163bb9228375939d607b283

See more details on using hashes here.

Supported by

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