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

Uploaded Source

Built Distribution

bionumpy-0.2.23-py2.py3-none-any.whl (121.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for bionumpy-0.2.23.tar.gz
Algorithm Hash digest
SHA256 337fc088e956ae9a2b34c3c875bd7fb635bfa3d5a1569bbfebfde8a2ec0c220c
MD5 05b335f658ddeeb54ecb36b1c846895c
BLAKE2b-256 12daf5be91e13880950977c08a571db4cce2148975ec5fc1e5e4ea9cf157f04e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bionumpy-0.2.23-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c67f4e300d0b9e36371ce3a40390fd163ed8dd62413e4d677231e1bf99f207f9
MD5 18b31aea47ecbd88d10c398f4b023a1f
BLAKE2b-256 2a5a2a3e6a359f13998d941d5d75d8ae814dea8de9450261e087a66cb7aff995

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