Views
No views yet
[!TIP] The MultiMolecule team has confirmed that the provided model and checkpoints are producing the same intermediate representations as the original implementation.
ConvModel consists of three convolutional blocks (Conv1D + ReLU + BatchNorm + Dropout, 120 filters of width 5 with valid padding) followed by a flatten and a single fully-connected layer that emits 12 task outputs. Each task corresponds to a (cell line, reporter promoter, replicate) combination from the Sharpr-MPRA experiment: the K562 and HepG2 cell lines, each measured with both a minimal promoter (minP) and the strong SV40 promoter (SV40p), with two individual replicates plus a pooled average per condition. Please refer to the Training Details section for more information on the training process.| Num Conv Layers | Num FC Layers | Hidden Size | Num Parameters (M) | FLOPs (M) | MACs (M) | Max Num Tokens |
|---|---|---|---|---|---|---|
| 3 | 1 | 15960 | 0.34 | 40.40 | 20.05 | 145 |
multimolecule library. You can install it using pip:pip install multimolecule1>>> import torch
2>>> from multimolecule import DnaTokenizer, MpraDragoNnForSequencePrediction
3
4>>> tokenizer = DnaTokenizer.from_pretrained("multimolecule/mpradragonn")
5>>> model = MpraDragoNnForSequencePrediction.from_pretrained("multimolecule/mpradragonn")
6>>> sequence = "ACGT" * 36 + "A"
7>>> output = model(**tokenizer(sequence, return_tensors="pt"))
8
9>>> output.logits.shape
10torch.Size([1, 12])k562_minp_{rep1, rep2, avg}, k562_sv40p_{rep1, rep2, avg}, hepg2_minp_{rep1, rep2, avg}, hepg2_sv40p_{rep1, rep2, avg} (z-scored log2 RNA/DNA ratios)log2((RNA + 1) / (DNA + 1)) per task, (2) column-wise z-score normalisation per task, and (3) augmenting with the reverse complement of every sequence. Chromosomes were split with chr8 held out as validation, chr18 held out as test, and all remaining chromosomes used for training (~900K training, ~30K validation, ~20K test sequences after the reverse-complement augmentation).1@article{movva2019mpradragonn,
2 author = {Movva, Rajiv and Greenside, Peyton and Marinov, Georgi K. and Nair, Surag and Shrikumar, Avanti and Kundaje, Anshul},
3 title = {Deciphering regulatory {DNA} sequences and noncoding genetic variants using neural network models of massively parallel reporter assays},
4 journal = {PLoS ONE},
5 volume = 14,
6 number = 6,
7 pages = {e0218073},
8 year = 2019,
9 publisher = {Public Library of Science},
10 doi = {10.1371/journal.pone.0218073}
11}[!NOTE] The artifacts distributed in this repository are part of the MultiMolecule project. If MultiMolecule supports your research, please cite the MultiMolecule project as follows:
1@software{chen_2024_12638419,
2 author = {Chen, Zhiyuan and Zhu, Sophia Y.},
3 title = {MultiMolecule},
4 doi = {10.5281/zenodo.12638419},
5 publisher = {Zenodo},
6 url = {https://doi.org/10.5281/zenodo.12638419},
7 year = 2024,
8 month = may,
9 day = 4
10}SPDX-License-Identifier: AGPL-3.0-or-later