Skip to main content

Create multi-sample text-pileups of streaming SAM/BAM files.

Project description

Streaming Pileupy

https://img.shields.io/pypi/v/streaming_pileupy.svg https://img.shields.io/travis/winni2k/streaming_pileupy.svg Documentation Status Updates

Create multi-sample text-pileups of streaming SAM/BAM files.

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

Missing features

  • Base quality filtering

  • 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.3.0 (2020-05-05)

  • Add support for basic pileup functionality

0.2.1 (2020-05-04)

  • First release on PyPI.

Project details


Download files

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

Source Distribution

streaming_pileupy-0.4.0.tar.gz (39.4 kB view details)

Uploaded Source

File details

Details for the file streaming_pileupy-0.4.0.tar.gz.

File metadata

  • Download URL: streaming_pileupy-0.4.0.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for streaming_pileupy-0.4.0.tar.gz
Algorithm Hash digest
SHA256 dc568415e8eae0b3e3db01e51413834fb3bacaa454369dad5b3e48856ef11fe9
MD5 43ee0be1aa72971283b88cbad9b0939e
BLAKE2b-256 061dd71d8cbd28bec792885423c66de0058a424cb58bafc43a9083b5681760b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page