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

Uploaded Source

Built Distribution

bionumpy-0.2.31-py2.py3-none-any.whl (143.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for bionumpy-0.2.31.tar.gz
Algorithm Hash digest
SHA256 004fd23a0f0b4f29bddb374cc43743606ebcda5f4d2e83294afe8955ebbd2db6
MD5 5564ae9d0e637555d25810501b81443a
BLAKE2b-256 3ea2091346e6141f02fc2515dffd53b7f3fb3a3c364143adbd662d6b6bde88c4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bionumpy-0.2.31-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7e2156ac9168b07e3f78ac76946cebf0743c2af98b404631cdd15465a41b51ad
MD5 3db7463197c488533c22d77c89e2dbc2
BLAKE2b-256 f74d1fec325c2b75125af79b1fa17fe9e21435243ba2e319ecfe689102f16fcf

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