hapadapter-as-h3k27me3
An adapter for allele-specific H3K27me3 analysis
1 min readupdated
This model is designed for bioinformatics research and predicts allele-specific H3K27me3 signal imbalance for heterozygous single nucleotide variants (SNVs). It is built on the DNABERT-2 encoder (a language model for DNA) and custom adapter heads (HapAdapter) trained on diploid personal genomes. It takes a pair of 257-base-pair personal genome windows for each haplotype as input. The model helps genetics researchers evaluate changes in epigenetic marks.
Key features
- Built on the DNABERT-2-117M encoder.
- Uses a Siamese network to process pairs of haplotype embeddings.
- Trained on data from various donors in the EN-TEx project.
- Strictly designed for 257-base-pair input windows.
What you can do
- Run an analysis of allele-specific histone modification imbalance for heterozygous variants.
- Use the base model (trunk) as an independent predictor of binding to the reference sequence.
- Explore haplotype epigenetic differences using data from specific donors (ENC-001 through ENC-004).
Example
from huggingface_hub import snapshot_download
from hapadapter.loading import load_model_and_tokenizer
local = snapshot_download("ametrick-system/hapadapter-as-h3k27me3", allow_patterns="ENC-001/dnabert2-*/*")
model, tokenizer, run_config = load_model_and_tokenizer(
f"{local}/ENC-001/dnabert2-personal")
model.eval()Read more
DetailsLimitations: input data restricted to 257 bp windows
Intended use: for research purposes only, not for clinical diagnostics
Architecture requires loading both trunk and personal subfolders simultaneously










Comments