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.

Files for bioplot, version 0.0.2
Filename, size & hash File type Python version Upload date
bioplot-0.0.2-py2.py3-none-any.whl (3.4 kB) View hashes Wheel py2.py3
bioplot-0.0.2.tar.gz (3.5 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page