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-1.0.1.tar.gz (158.4 kB view details)

Uploaded Source

Built Distribution

bionumpy-1.0.1-py2.py3-none-any.whl (151.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: bionumpy-1.0.1.tar.gz
  • Upload date:
  • Size: 158.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for bionumpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 059982d2b109577616cdc6b1100caf17366101d6e8601418687dfac66acf8eab
MD5 4bf784ce86c02a83c57029738d51cd00
BLAKE2b-256 7e84de8f22731a6be4651b1a58ed6032cca690ae0f4bd1e81e344d0177043901

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bionumpy-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 151.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for bionumpy-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ea44d3f8250c409a1b7bab15aa57f495442f22feffeaca6cd77a0b680c411786
MD5 d3736610e90932a0bcf8aaee54c8bb02
BLAKE2b-256 73ed7e874bf69d4f4ad4a9718df4997a6e645e784817988003e94530cdc6cff1

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