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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
genomeblocks-1.0.1.tar.gz
(89.9 kB
view details)
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.1.tar.gz.
File metadata
- Download URL: genomeblocks-1.0.1.tar.gz
- Upload date:
- Size: 89.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 |
156d510757e6335af02ad6688dc12345d4e845287b5d65bc79f050d3d38c8b79
|
|
| MD5 |
7cda68867b9712b5289da3accbfc532b
|
|
| BLAKE2b-256 |
6bfd2effa61132c5a1cde2cffd26b2727d9ba1e2d2043d93418ce63bbfe9f294
|
File details
Details for the file genomeblocks-1.0.1-py3-none-any.whl.
File metadata
- Download URL: genomeblocks-1.0.1-py3-none-any.whl
- Upload date:
- Size: 82.1 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 |
0276e6a7b9cc3e7b81732a1824f1b5f76cd2646768efedd87ce65cd0ce5b4701
|
|
| MD5 |
43544642790d0b8440df74326614431e
|
|
| BLAKE2b-256 |
029e84c251c97acbc5c2fbff295558e19f6230781bbd178f3ae058d220541ff3
|