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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quantnado-0.1.7.dev0.tar.gz.
File metadata
- Download URL: quantnado-0.1.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01b1b9f1b3d1d5fb0c5e937e1c3bb0108e76ec88fca4bd072d3ec14b49ae4332
|
|
| MD5 |
b44da796280c2bcc383ecae5d3640af3
|
|
| BLAKE2b-256 |
b7647a4333943483aae2d7411b5460d6f442dddf49488266fda635e4dd6008f2
|
File details
Details for the file quantnado-0.1.7.dev0-py3-none-any.whl.
File metadata
- Download URL: quantnado-0.1.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b2ff2629d56a17581f1cfc9f1c765ecd8de1477f86eb9acbc8067618321a67a
|
|
| MD5 |
53d58d2f2816b7ccd85c8dd3c6695006
|
|
| BLAKE2b-256 |
a7a12f1105b0c0f31ab02c95296f8dc6f67bf547d9e3749c33e58edca58ad8b8
|