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

Uploaded Source

Built Distribution

bionumpy-1.0.12-py2.py3-none-any.whl (161.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: bionumpy-1.0.12.tar.gz
  • Upload date:
  • Size: 167.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for bionumpy-1.0.12.tar.gz
Algorithm Hash digest
SHA256 fbb950d969db4ae46782f019fa8eb03e707100e387e46c4763a7fe277f75ef50
MD5 7c0341bd5cb90e9d3edbaf2db57adda4
BLAKE2b-256 b6a962aa7f268728db220985fa31bc34e52951efc01ca772e1479857d5060225

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bionumpy-1.0.12-py2.py3-none-any.whl
  • Upload date:
  • Size: 161.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for bionumpy-1.0.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6c8b89e4c4d28267c4586fd33cfe111a635be8560d5132206822c791bba13147
MD5 5a574cd738d47c955a5b2c0dbdd512ff
BLAKE2b-256 fa9ff91765f1ec4b0e09e3555c1ff618afa62bc1c1e7479e1f2a8c3378743400

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