thrumbel commited on
Commit
d992c15
·
verified ·
1 Parent(s): 3276e96

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +73 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: biomed-multi-omic
3
+ license: apache-2.0
4
+ tags:
5
+ - Biology
6
+ - DNA
7
+ # datasets:
8
+ # - PanglaoDB
9
+ # - CELLxGENE
10
+ ---
11
+
12
+ # ibm-research/biomed.dna.ref.modernbert.113m.v1
13
+
14
+ Biomedical foundational models for omics data. This package supports the development of foundation models for scRNA or for DNA data.
15
+
16
+ `biomed-multi-omic` enables development and testing of foundation models for DNA sequences and for RNA expression,
17
+ with modular model and training methods for pretraining and fine-tuning, controllable via a declarative no-code interface.
18
+ `biomed-multi-omic` leverages anndata, HuggingFace Transformers, PyTorchLighting and Hydra.
19
+
20
+ - 🧬 A single package for DNA and RNA Foundation models. scRNA pretraining on h5ad files or TileDB (eg CellXGene), DNA pretraining on reference human genome (GRCh38/hg38) and also variant imputed genome based on common SNPs available from GWAT catalog and ClinVar datasets.
21
+ - 🚀 Leverages latest open source tools: anndata, HuggingFace transformers and PyTorchLighting
22
+ - 📈 Zero-shot and finetuning support for diverse downstream tasks: (cell type annotation, perturbation prediction for scRNA, promoter prediction task and regulatory regions using Massively parallel reporter assays (MPRAs)
23
+ for DNA sequences)
24
+ - Novel pretraining strategies for scRNA and DNA implemented alongside existing methods to enable experimentation and comparison.
25
+
26
+ For details on how the models were trained, please refer to [the BMFM-DNA preprint](https://arxiv.org/abs/2507.05265).
27
+
28
+ - **Developers:** IBM Research
29
+ - **GitHub Repository:** [https://github.com/BiomedSciAI/biomed-multi-omic](https://github.com/BiomedSciAI/biomed-multi-omic)
30
+ - **Paper:** [BMFM-DNA: A SNP-aware DNA foundation model to capture variant effects](https://arxiv.org/abs/2507.05265)
31
+ - **Release Date**: Jun 26th, 2025
32
+ - **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
33
+
34
+ ## Checkpoint
35
+
36
+ **BMFM-DNA-REF**
37
+
38
+ The pre-training samples were prepared by extracting DNA sequences of random lengths (between 1kb and 10kb) consecutively from the human reference genome. Sequences were excluded if all nucleotides are “N”. To further enrich the diversity of the training set, we repeated the whole-genome random sampling 10 times. For each DNA sequence sample, we also created the reverse complement sequence as the counterpart, leading to a total of 9,982,678 samples that roughly cover the human genome 20 times or about 60 billion nucleotides.
39
+
40
+ For full details see section 3.1.1 of [the BMFM-DNA manuscript](https://arxiv.org/abs/2507.05265).
41
+
42
+ ## Usage
43
+
44
+ Using `biomed.dna.ref.modernbert.113m.v1` requires the codebase [https://github.com/BiomedSciAI/biomed-multi-omic](https://github.com/BiomedSciAI/biomed-multi-omic).
45
+
46
+ For installation, please follow the [instructions on github](https://github.com/BiomedSciAI/biomed-multi-omic?tab=readme-ov-file#installation).
47
+
48
+ ## DNA Inference
49
+
50
+ To get embeddings for DNA sequences run:
51
+
52
+ ```bash
53
+ export INPUT_DIRECTORY=... # path to your DNA sequences files
54
+ bmfm-targets-run -cn dna_predict input_directory=$INPUT_DIRECTORY working_dir=/tmp checkpoint=ibm-research/biomed.dna.ref.modernbert.113m.v1
55
+ ```
56
+
57
+ For more details see the [DNA tutorials on github](https://github.com/BiomedSciAI/biomed-multi-omic?tab=readme-ov-file#dna-inference).
58
+
59
+ ## Citation
60
+
61
+ To cite the tool for both RNA and DNA, please cite both the following articles:
62
+
63
+ ```bibtex
64
+ @misc{li2025bmfmdnasnpawarednafoundation,
65
+ title={BMFM-DNA: A SNP-aware DNA foundation model to capture variant effects},
66
+ author={Hongyang Li and Sanjoy Dey and Bum Chul Kwon and Michael Danziger and Michal Rosen-Tzvi and Jianying Hu and James Kozloski and Ching-Huei Tsou and Bharath Dandala and Pablo Meyer},
67
+ year={2025},
68
+ eprint={2507.05265},
69
+ archivePrefix={arXiv},
70
+ primaryClass={q-bio.GN},
71
+ url={https://arxiv.org/abs/2507.05265},
72
+ }
73
+ ```