sjcab_peak2anno
sjcab_peak2anno annotates genomic peaks to genes, genomic features, and
chromatin states. It provides the peak2anno and sjcab-peak2anno command
line interfaces.
Documentation
Read the full documentation at sjcab-peak2anno.readthedocs.io.
Install
Pip version does not require bedtools; auto uses the Python interval
backend. To use native bedtools and create a reviewable script, set
SJCAB_PEAK2ANNO_BACKEND=bedtools with bedtools available in PATH.
The generated bedtools-peak2anno.sh supports mode 1 (one wide window) and
mode 2 (promoter-first, enhancer-second).
pip install sjcab_peak2anno
The conda package does not require external interval tools.
conda install stjudecab::sjcab_peak2anno
Quick start
# it would automatic sjcab_peak2anno_db install hg38 v31 and annotate peaks.bed
wget https://github.com/stjudecab/sjcab_peak2anno/raw/refs/heads/master/tests_data/peaks.bed
peak2anno peak2gene peaks.bed
Command examples
Annotate a BED peak to nearby genes. Omitting -o writes the table to stdout:
peak2anno peak2gene tests_data/peaks.bed \
--tss-bed tests_data/tss.bed \
--prom-enha-cutoffs 2000,50k
Example output (tab-delimited):
chr1 50 150 peak1 GeneA ENSGA . . GeneA ENSGA 0
Run multiple annotations in one table with the combined command syntax using default hg38 v31:
peak2anno peak2gene narrow2feature tests_data/peaks.bed \
--workers 2 -o combined.tsv
Representative combined output columns look like this:
chr start end peak Closest_Gene FeatureAssignment
chr1 100000 101000 peak1 GeneA Promoter
Annotate both anchors of a BEDPE loop with loop2gene, loop2feature, or
loop2state:
peak2anno loop2gene loops.bedpe --tss-bed annotations/hg38/tss.bed -o loops.tsv
Representative loop output contains separate anchor columns:
chr1 100000 101000 chr1 200000 201000 anchor1_Closest_Gene anchor2_Closest_Gene
chr1 100000 101000 chr1 200000 201000 GeneA GeneC
Release files for sjcab-peak2anno 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sjcab_peak2anno-0.3.tar.gz | 51.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sjcab_peak2anno-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.4 kB
Release files / sjcab_peak2anno-0.3.tar.gz
| Download URL | sjcab_peak2anno-0.3.tar.gz |
|---|---|
| Size | 51.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db11dfc3b54f93249531a799465e374c9bfe58697a8f868052e84f60dd957d3d
|
|
BLAKE2b-256 checksum How to use checksums |
d080a4328aabdeb1e421a8741697bed91f4ea7a00c60545122842a4532e38914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / sjcab_peak2anno-0.3-py3-none-any.whl
| Download URL | sjcab_peak2anno-0.3-py3-none-any.whl |
|---|---|
| Size | 49.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df693be891f20db27e5d98e8cb15db20e49ca4af3bf14e5d1a2bb3684ba19f57
|
|
BLAKE2b-256 checksum How to use checksums |
361fd9f8985f71c67baaa451e426a006c925035a44a37703cdcc32eb10c8d5ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency log