Skip to main content

Library for working with biological sequence data as numpy arrays.

Project description

https://img.shields.io/pypi/v/bionumpy.svg Build and test status Benchmarks

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

  1. Install with pip:

    $ pip install bionumpy

  2. 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


Download files

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

Source Distribution

bionumpy-0.2.18.tar.gz (114.5 kB view details)

Uploaded Source

Built Distribution

bionumpy-0.2.18-py2.py3-none-any.whl (112.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bionumpy-0.2.18.tar.gz.

File metadata

  • Download URL: bionumpy-0.2.18.tar.gz
  • Upload date:
  • Size: 114.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for bionumpy-0.2.18.tar.gz
Algorithm Hash digest
SHA256 6b480d0787d80c6d42b0cf40464f3ffcf4759503a3df3af7421ea466cf03f3c7
MD5 45b77d66ab21ba14414852ecc08c2b71
BLAKE2b-256 f712adf66904835ba4eb7323e702f7657640d7480d0e251a5f68a340fdc63147

See more details on using hashes here.

File details

Details for the file bionumpy-0.2.18-py2.py3-none-any.whl.

File metadata

  • Download URL: bionumpy-0.2.18-py2.py3-none-any.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for bionumpy-0.2.18-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b17abdebb902798e96ff04c94c905238889a892a6b780ddc2cdb4b9f3b86266c
MD5 c8a76cfa7aac9238140356326fe9895d
BLAKE2b-256 4fce646f1def8cf96ef87d33d1b93b01c742849a19cafebecb4952a6d575b9c1

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