Skip to main content

Python interface to BRI (Bam Read Index)

Project description

Python package

camembertpy

Cython wrapper for https://github.com/jts/bri with pysam integration.

Installation

From source

conda approach (recommended)

conda env create -f environment.yml
conda activate camembert
python setup.py install

pip approach

# optional virtualenv:
virtualenv camembert
source camembert/bin/activate

# Installation
pip install -r requirements.txt
python setup.py install

Examples

API

build read index

from camembert import Bri
b = Bri(bam_file)
b.create()

retrieve reads

from camembert import Bri
b = Bri(bam_file)
b.load()
for read in b.get(read_name):
    print(read.to_string())  # read is of type pysam.AligmentSegment

CLI

A command line interface is included and mimics the original bri CLI command. For usage, refer to

camembert --help
camembert <subcommand> --help

build read index

camembert index bam_file.bam

retrieve reads

camembert get bam_file.bam read_name

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

camembert_bri-0.0.1-cp38-cp38-manylinux2010_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

camembert_bri-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

camembert_bri-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

camembert_bri-0.0.1-cp27-cp27m-manylinux2010_x86_64.whl (7.8 MB view details)

Uploaded CPython 2.7m manylinux: glibc 2.12+ x86-64

File details

Details for the file camembert_bri-0.0.1-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: camembert_bri-0.0.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for camembert_bri-0.0.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a5fe1dfa7c6a3b6a8d0adb19bd979a50cd4ff1f8eb119d8ab1c9ed675f90e011
MD5 2e362666783ea7680731d995bad07ddf
BLAKE2b-256 0ebb0cbaa87087e0141153132f7230c359e12ce96a6f652dca0159b3d90a7816

See more details on using hashes here.

File details

Details for the file camembert_bri-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: camembert_bri-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for camembert_bri-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2edbe101d158dc7882c29e99fe03d0bac317a2fd4bb56a329979bfab14c7b9a7
MD5 4b9df2863c4399dba760c05f6b466d1e
BLAKE2b-256 84d8d43f35f6ff2a7aaaf37b126579ea5fbccca3b0cf486ec4cba2d86d2b8346

See more details on using hashes here.

File details

Details for the file camembert_bri-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: camembert_bri-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for camembert_bri-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e93da5022c70ea42553ca2e2bce75f3b64d37b37e3e8c6715b981a07eaeb1fd8
MD5 318185ed39d2bfd5d20bcda67346abee
BLAKE2b-256 c06ce63d4c0b6d6f28a77baf19763b050dfb873ed76b5c85b8536b024dcaf092

See more details on using hashes here.

File details

Details for the file camembert_bri-0.0.1-cp27-cp27m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: camembert_bri-0.0.1-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for camembert_bri-0.0.1-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 11a4df09c625a4f449a6ab073b3873192c265eac65c9d8aa8b1aab84ef8c2ec2
MD5 1f792e5d9f0c76fff3abbd2b0ec01096
BLAKE2b-256 4490d5e349f0e8f988d931e34ddd25e40c548c408365d2a9a7da1c86890683c4

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