Python interface to BRI (Bam Read Index)
Project description
camembertpy
Cython wrapper for https://github.com/jts/bri with pysam integration.
Installation
From pip repository
pip install camembert-bri
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file camembert-bri-0.0.2.tar.gz.
File metadata
- Download URL: camembert-bri-0.0.2.tar.gz
- Upload date:
- Size: 58.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e2e213c30fa5d4cbb49e05f5a5b62cb60e91700c4a241240be29e7be4dc5d4a
|
|
| MD5 |
71519fbaba7f9a88da174ad542943db2
|
|
| BLAKE2b-256 |
2d699454289f9b700cd557fe3a7eb2507e537c753da8f9e4e4c5f06fed40c525
|
File details
Details for the file camembert_bri-0.0.2-cp38-cp38-manylinux2010_x86_64.whl.
File metadata
- Download URL: camembert_bri-0.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdd56956a1f489d70dcd9366e3418da5f1a8129bcb1b1ff0443d17cd216b02e6
|
|
| MD5 |
23c0a821abdb04706564c066538e2055
|
|
| BLAKE2b-256 |
4480fa632a7e595469b98f585d90b905f09f8f876bfeadd18ff8bc98b7a1aa8f
|
File details
Details for the file camembert_bri-0.0.2-cp37-cp37m-manylinux2010_x86_64.whl.
File metadata
- Download URL: camembert_bri-0.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fc75d070e265a09b0ac456ba3bc843e535a29e1bcfec65f8d36778f79edc6b2
|
|
| MD5 |
2a052885dc4fce257ce4e8f4348b568b
|
|
| BLAKE2b-256 |
fec93b009c45978512a6004fb25d840dedf8920e246d37b0dc4eb98faf43f08a
|
File details
Details for the file camembert_bri-0.0.2-cp36-cp36m-manylinux2010_x86_64.whl.
File metadata
- Download URL: camembert_bri-0.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
963fe84cfa01ef859deee1949ccb6000c4d14c4d9b2a05177ba0379d34ca9efc
|
|
| MD5 |
b78b18e25ab901f8a94c2cadcd183a8b
|
|
| BLAKE2b-256 |
b9658b5649138088ee2f5577d7a52b468fafa6138c5585913004b466bac46136
|
File details
Details for the file camembert_bri-0.0.2-cp27-cp27m-manylinux2010_x86_64.whl.
File metadata
- Download URL: camembert_bri-0.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed1c6b7c3a868f787d5d5608c732d2f87ada734a97cb61e6b692a79d0668a36e
|
|
| MD5 |
e1a2ca39d9b4a528e9a706ece55f0d80
|
|
| BLAKE2b-256 |
d967c4196e4314f1158119bf1b9c8fc03a979b65c28ab93038d2d2d60b87fd9f
|