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-cgap-0.3.0.tar.gz
(20.9 MB
view hashes)
Built Distribution
Close
Hashes for bamsnap_cgap-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c9c6f02df847bae3d2d84eddb107101a07ff1dece2215145552c4ae765e386 |
|
MD5 | aa08c6d0a943e3d3429670f85286c2b3 |
|
BLAKE2b-256 | 043bf03803b68a1b1f85334716c2668654bdbd698d6405635c8514101ff990bb |