Fluent building blocks for regulatory genomics.
Project description
Genomeblocks
Fluent building blocks for regulatory genomics.
Loci: craft and manipulate candidate regulatory element (CRE) sets with set algebra.Genes: parse GTF / UCSC RefSeq and annotate CREs with promoter-anchored gene models.Architecture: chromatin-contact graphs over CREs — build from BEDPE loops, overlay mcool matrices, normalize, annotate, find hubs.signal: threaded bigWig extraction, TMM normalization, comparative heatmaps.motifs: JASPAR motif scanning over a FASTA genome and enrichment.Atlas: GIGGLE-style enrichment of a region set against a ChIP-Atlas index.browser: IGV-like, fully-vectorial region viewer.
📖 Documentation: birkiy.github.io/genomeblocks — start with the AR & FOXA1 walkthrough.
Quick Start
from genomeblocks import Architecture, Genes, Loci
cre = (Loci.make("atac.narrowPeak")
.slop(100)
.sort()
.merge())
se = cre.intersect(Loci.make("H3K27ac_SE.bed"))
arch = (Architecture.make(cre, "RNAP_loops.bedpe", r=2500)
.add_mcool(cre, "RNAP.mcool", resolution=5000)
.normalize(cre))
genes = Genes.make("gencode.v38.annotation.gtf", promoter_r=1000)
counts = genes.annotations(se & cre).groupby("annotation").size()
Setup
conda env create -f environment.yml
conda activate genomeblocks
pip install -e .
For a pip-only install (no graph-tool → no Architecture):
pip install genomeblocks
See the documentation for installation details, a full quickstart, module guides, and an API reference.
License
MIT — see LICENSE.
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 genomeblocks-1.0.0.tar.gz.
File metadata
- Download URL: genomeblocks-1.0.0.tar.gz
- Upload date:
- Size: 88.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9f4a09ef24b1a22acee6c9399e7f90d95425495624161e11aaac244d1be39c9
|
|
| MD5 |
a41ce953497220898ebffd6b45a7ab45
|
|
| BLAKE2b-256 |
260c24a73fed9ef45e86fff4b6b77dad7c81dc2c7bbbe644daed928b0da29336
|
File details
Details for the file genomeblocks-1.0.0-py3-none-any.whl.
File metadata
- Download URL: genomeblocks-1.0.0-py3-none-any.whl
- Upload date:
- Size: 81.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5c3e83e1fba6f33197a1381e8b98deb3fc934c7521d15d4d0ff44dd7912f831
|
|
| MD5 |
5894936902f0f8c9e111f9508ad2c6c2
|
|
| BLAKE2b-256 |
a5755ca226807062b9d93eb48f5fc1850313be8efecdc2d4aba2ff0431ee6326
|