Create multi-sample text-pileups of streaming SAM/BAM files.
Project description
Streaming Pileupy
Create multi-sample text-pileups of streaming SAM/BAM files.
Free software: MIT license
Documentation: https://streaming-pileupy.readthedocs.io.
Features
Streaming Pileupy creates a pileup of a single SAM/BAM file using the read group SM identifier to split reads by sample:
# extract sample names from read group SM tag
samtools view -H input.bam \
| grep '^@RG' \
| perl -pne 's/.*SM:(\S+).*/$1/' \
| sort | uniq > sample_names.txt
# create read-group aware pileup
spileup input.bam sample_names.txt
Base quality filtering
Bases with less than a certain quality can be filtered with -Q.
Missing features
Read beginning and end annotations in pileup output
Deletion annotations in pileup output
Filter output bases on BED file
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.5.0 (2020-05-05)
Add base quality filter (-Q)
0.4.0 (2020-05-05)
Add support for python 3.6
0.3.0 (2020-05-05)
Add support for basic pileup functionality
0.2.1 (2020-05-04)
First release on PyPI.
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
File details
Details for the file streaming_pileupy-0.5.7.tar.gz
.
File metadata
- Download URL: streaming_pileupy-0.5.7.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e7d8616a70225327bdb43bb764429b33398632c87cf1042811893360ab9d79 |
|
MD5 | a382ee7984b6afd94d7f98af2ea4f750 |
|
BLAKE2b-256 | 2e1935639adc976213dc1c1c60f9b0d36f6e79363635e467bc860c975d1ab9af |