Library for working with biological sequence data as numpy arrays.
Project description
Documentation: https://bionumpy.github.io/bionumpy/
What is BioNumPy?
BioNumPy is a Python library, built on top of NumPy, for enabling array programming on biological datasets in Python. BioNumPy aims to make it easy to read common bioinformatics file formats efficiently into NumPy-like data structures that enable efficient operations and analysis of the data. Working in BioNumPy should feel much like working in NumPy.
Getting started
Install with pip:
$ pip install bionumpy
Import BioNumPy and read your data, e.g.:
>>> import bionumpy as bnp >>> import numpy as np >>> f = bnp.open("example_data/big.fq.gz") >>> # chunk contains the sequences of reads and NumPy-functions can be used >>> for chunk in f: ... print(np.sum(chunk.sequence == "G")) 53686
Check out the getting started guide and various tutorials in the documentation.
You can also find the latest version of the BioNumPy manuscript here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bionumpy-0.2.20.tar.gz
.
File metadata
- Download URL: bionumpy-0.2.20.tar.gz
- Upload date:
- Size: 114.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6518cd7f54003a4e2e03998c91dbfde8a2a3c3f918af7695c32783ac12fb14ae |
|
MD5 | 48d48b7373ac0a75075b1d1d3c8e4752 |
|
BLAKE2b-256 | bee2a9fb86ddf0bbd7fd9644ae1b628ab509cd2eed0a3c077534b1f742cab3a0 |
File details
Details for the file bionumpy-0.2.20-py2.py3-none-any.whl
.
File metadata
- Download URL: bionumpy-0.2.20-py2.py3-none-any.whl
- Upload date:
- Size: 112.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4601b684d098ebbd071c2c576c1f3ed33543c17227ef85ecedf31a783163f1e8 |
|
MD5 | 81b3481dcd0774a679f4238a9af462cf |
|
BLAKE2b-256 | 4ea562dfddcf1b41aa751e0303c2f3e77cde5971cd7c03af8f07e49c7e459897 |