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.
Metadata
Release files for genomeblocks 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| genomeblocks-1.0.1.tar.gz | 89.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| genomeblocks-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 172.1 kB
Release files / genomeblocks-1.0.1.tar.gz
| Download URL | genomeblocks-1.0.1.tar.gz |
|---|---|
| Size | 89.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
156d510757e6335af02ad6688dc12345d4e845287b5d65bc79f050d3d38c8b79
|
|
BLAKE2b-256 checksum How to use checksums |
6bfd2effa61132c5a1cde2cffd26b2727d9ba1e2d2043d93418ce63bbfe9f294
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / genomeblocks-1.0.1-py3-none-any.whl
| Download URL | genomeblocks-1.0.1-py3-none-any.whl |
|---|---|
| Size | 82.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0276e6a7b9cc3e7b81732a1824f1b5f76cd2646768efedd87ce65cd0ce5b4701
|
|
BLAKE2b-256 checksum How to use checksums |
029e84c251c97acbc5c2fbff295558e19f6230781bbd178f3ae058d220541ff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|