Skip to main content

Quantile-based peak calling from RPKM bigWig files

Project description

QuantNado

quantnado-call-peaks is a quantile-based peak caller for CUT&Tag or ChIP-seq RPKM-scaled bigWig files. It tiles the genome, extracts log1p-transformed signal, and outputs BED files of high-signal regions using quantile thresholding.

quantnado-make-dataset generates an .h5ad (AnnData) file representing signal matrices across defined regions, using signal from multiple bigWigs.


📦 Installation

Install from PyPI:

pip install quantnado

Requires Python ≥ 3.8


🚀 Usage

🔹 Call Peaks

quantnado-call-peaks \
  --bigwig-dir path/to/bigwigs/ \
  --output-dir path/to/output/ \
  --chromsizes path/to/hg38.chrom.sizes \
  --tilesize 128 \
  --quantile 0.98 \
  --merge \
  --blacklist path/to/hg38-blacklist.bed \
  --tmp-dir tmp/

This will:

  • Tile the genome in 128bp bins
  • Extract log1p(RPKM) signal from each bigWig file
  • Threshold each track at the 98th percentile (default)
  • Output BED files of high-signal bins per track

🔹 Make Dataset

quantnado-make-dataset \
  --bigwig-dir path/to/bigwigs/ \
  --output-file dataset.h5ad \
  --chromsizes path/to/hg38.chrom.sizes \
  --regions promoters_1024bp.bed \
  --blacklist hg38-blacklist.bed

If --regions is not provided, the genome will be tiled using --binsize (default: 128 bp).

The resulting .h5ad will contain:

  • .X: matrix of mean RPKM per region per bigwig
  • .obs: region metadata (chrom, start, end)
  • .var: track names (from bigWig filenames)

⚙️ Options

Option Description
--bigwig-dir Folder with .bw or .bigWig files
--chromsizes Tab-separated chrom.sizes file (chr\tlength)
--blacklist BED file of regions to exclude
--tilesize Genomic bin size for peak calling (default: 128 bp)
--quantile Quantile threshold for peaks (default: 0.98)
--merge Merge adjacent bins into broader peaks
--regions BED file of regions to extract signal over
--binsize Bin size used if --regions is not specified (default: 128)
--output-file Path to save .h5ad or .h5mu

📁 Output Files

Peak caller (quantnado-call-peaks)

  • *.bed: BED files of peaks for each bigwig

Dataset maker (quantnado-make-dataset)

  • .h5ad: AnnData file with signal matrix

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

quantnado-0.2.1.dev0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantnado-0.2.1.dev0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file quantnado-0.2.1.dev0.tar.gz.

File metadata

  • Download URL: quantnado-0.2.1.dev0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for quantnado-0.2.1.dev0.tar.gz
Algorithm Hash digest
SHA256 bc28ac5a10c4638c5c9d1754e2fbe20b7f9bde7c4a0f260cc878944940fe22a4
MD5 ec7b04c691888faa8544a2cb2b608e2a
BLAKE2b-256 f773fe05d64b5110406a41f5196c7ab7caa05e4f46c88261142d112694362795

See more details on using hashes here.

File details

Details for the file quantnado-0.2.1.dev0-py3-none-any.whl.

File metadata

  • Download URL: quantnado-0.2.1.dev0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for quantnado-0.2.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3431ab82208ef8ccbe0137de994e0bfaca0289a31924409586e077ac9c06ec8
MD5 3ecf1af72072ac4370b739469158198e
BLAKE2b-256 f8c84aff362f0f046698410150cb4651871b89529620fc4038dcc99cc847e8cd

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