A converter from .bam to .png for specific genomic region.
Project description
BamSnap
BamSnap: a lightweight command-based visualization tool for sequencing reads in BAM files
For more details, see BamSnap Documentation.
Installation
Prerequisites
- python 3.4+
- Pillow (Python Imaging Library)
- pysam
- pyfaidx
- pytabix
Install with pip
pip install bamsnap
Install with github
git clone https://github.com/parklab/bamsnap
cd bamsnap
python setup.py install
Usage
Simple usage
$ bamsnap -bam test.bam -pos 1:7364529 -out test.png
For more details, see BamSnap Documentation.
Usage with docker
$ docker pull danielmsk/bamsnap
$ docker run --rm -it -v /local_directory_path:/directory_path_in_image danielmsk/bamsnap bamsnap \
-bam /directory_path_in_image/test.bam \
-pos 1:7364529 \
-out /directory_path_in_image/test.png
Example Use Case
- 1000 Genome Data: 1000 genomic loci in 2504 individuals
- BamSnap Plot Gallery
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
bamsnap-0.2.16.tar.gz
(20.9 MB
view details)
Built Distribution
bamsnap-0.2.16-py3-none-any.whl
(20.9 MB
view details)
File details
Details for the file bamsnap-0.2.16.tar.gz
.
File metadata
- Download URL: bamsnap-0.2.16.tar.gz
- Upload date:
- Size: 20.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb42a48134a57b5e5036a89e5cb95fe94f9fcdd2c3d29c518fc63d5bcf65818a |
|
MD5 | 8317ade8e7c3f66f944081c7e63ad1a8 |
|
BLAKE2b-256 | f613b5b63173a260b278572b1445e179bd12e255dc7ce336765a2c0aebc56f0b |
Provenance
File details
Details for the file bamsnap-0.2.16-py3-none-any.whl
.
File metadata
- Download URL: bamsnap-0.2.16-py3-none-any.whl
- Upload date:
- Size: 20.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891756f1f55f42407a3aace2e14c6446f5a2422cc2f1fbbda26773b9db4412a9 |
|
MD5 | a33b47412213909a7ca0bd2d3c109050 |
|
BLAKE2b-256 | 483f1be81c4d32dfc2bb9ebb82bc3a30454a3a2ce802bf7027930f2a5a83c183 |