Skip to main content

pileup_reads

Pileup reads from ChIP/ATAC/RNA-seq to make bedgraph/wig/bigwig.

Requirements

  • Python >= 3.8, no third-party packages
  • samtools on PATH (module load samtools)
  • for bigwig, UCSC wigToBigWig / bedGraphToBigWig on PATH; otherwise they are fetched over https and md5-checked into the run's temporary directory. Put them on PATH if compute nodes have no outbound network.

Usage

pileup-reads $INPUT $OUTPUT $OPTIONS...              # installed
python -m pileup_reads $INPUT $OUTPUT $OPTIONS...    # from a checkout

# ChIP
pileup-reads in.bam out.cpm.bigwig -n cpm -p 20
# ATAC
pileup-reads in.bam out.cpm.bigwig -s m36 -t force-extend -e 80 -n cpm -p 20
# RNA-seq
pileup-reads in.bam out.cpm.bigwig -b 1 -t splice -n cpm -p 20
# split a paired-end bam by fragment size
pileup-reads split-by-size in.bam -s 150 -i --plot

pileup-reads --help lists every option. A minus sign may be written m (-s m36 is -36), and counts take a metric prefix (10M).

Notes

  • Output does not depend on --chunk-size; tests/ asserts it.
  • Unmapped, secondary and supplementary reads are always skipped. Duplicates (0x400) and low MAPQ are only filtered with -f: -f 0 drops duplicates, -f 30 also drops reads below MAPQ 30.
  • -t extend builds the interval from the mate, so it also skips reads whose pairing failed (mate unmapped, not properly paired). That is a quality filter: reads the aligner reports as single-end are extended normally.
  • .bai and .csi are both found, as file.bam.bai or file.bai.
  • Intermediate files go to $SLURM_TMPDIR when set, otherwise $OUTPUT.tmp beside the output, so they land on a filesystem with room. --tmp-dir overrides both.

Tests

module load samtools
python -m unittest discover -s tests -t .   # synthetic fixtures, no data/ needed
tests/smoke.sh --check                      # rebuild data/ tracks and diff
tests/smoke.sh                              # regenerate them in place

data/ holds a real mouse bam and reference bigwigs, kept out of version control for size; tests/ is what guards behaviour. tests/smoke.sh records the settings each reference track was built with.

Metadata

Release files for pileup-reads 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pileup-reads 0.0.2
File Size Uploaded Provenance Actions
pileup_reads-0.0.2.tar.gz 17.9 kB Without provenance Details for pileup_reads-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pileup-reads 0.0.2
File Interpreter ABI Platform Actions
pileup_reads-0.0.2-py3-none-any.whl Python 3 none any Details for pileup_reads-0.0.2-py3-none-any.whl

Total release size: 39.0 kB

Release files / pileup_reads-0.0.2.tar.gz

Download URL pileup_reads-0.0.2.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e45cef9eca83f8b0b60b2bbe1ff60798bb007c8f801cc83daee79720446ebd5d
BLAKE2b-256 checksum
How to use checksums
107ba1b4042564191284b6cd476c38df278c6dbdd3a354d97316978f145afe00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / pileup_reads-0.0.2-py3-none-any.whl

Download URL pileup_reads-0.0.2-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e6c2bffa44cc3208656c08a8164e44a8c54df34fce160ab70ce7a1dd1c32de8
BLAKE2b-256 checksum
How to use checksums
33b159a76ccf0caf16cbd5013b738d176a982a6f5e958091377818c29e89649e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for pileup-reads 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page