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.
| Variant | Num Layers | Hidden Size | Context | Ensemble Members | Num Parameters (M) | FLOPs (M) | MACs (M) |
|---|---|---|---|---|---|---|---|
| DeltaSplice | 24 | 64 | 30000 | 5 | 40.376 | 1642965.72 | 820284.36 |
| DeltaSplice-Human | 24 | 64 | 30000 | 5 | 40.376 | 1642965.72 | 820284.36 |
multimolecule library. You can install it using pip:pip install multimolecule1>>> from multimolecule import RnaTokenizer
2>>> from multimolecule.models.deltasplice import DeltaSpliceModel
3
4>>> tokenizer = RnaTokenizer.from_pretrained("multimolecule/deltasplice")
5>>> model = DeltaSpliceModel.from_pretrained("multimolecule/deltasplice")
6>>> inputs = tokenizer("AGCAGUCAUUAUGGCGAAUCUGGCAAGUA", return_tensors="pt")
7>>> output = model(**inputs)
8>>> output["probabilities"].shape
9torch.Size([1, 30, 3])1>>> from multimolecule import RnaTokenizer
2>>> from multimolecule.models.deltasplice import DeltaSpliceModel
3
4>>> tokenizer = RnaTokenizer.from_pretrained("multimolecule/deltasplice")
5>>> model = DeltaSpliceModel.from_pretrained("multimolecule/deltasplice")
6>>> reference = tokenizer("AGCAGUCAUUAUGGCGAAUCUGGCAAGUA", return_tensors="pt")
7>>> alternative = tokenizer("AGCAGUCAUUAUGGCUAAUCUGGCAAGUA", return_tensors="pt")
8>>> output = model(reference["input_ids"], alternative_input_ids=alternative["input_ids"], use_reference=True)
9>>> output["delta"].shape
10torch.Size([1, 30, 3])RnaTokenizer; N is encoded as zero nucleotide channelsno_splice, acceptor, donorprobabilitiesinput_ids and the alternate sequence as alternative_input_idsreference_usage with shape (batch_size, sequence_length, 3) or omit it to use the model's own reference usage as the reference signalgene_dataset.tsu.txt, which contains splice-site usage in adult brains of eight mammalian species.1@article{xu2024deltasplice,
2 title = {Reference-informed prediction of alternative splicing and splicing-altering mutations from sequences},
3 author = {Xu, Chencheng and Bao, Suying and Wang, Ye and Li, Wenxing and Chen, Hao and Shen, Yufeng and Jiang, Tao and Zhang, Chaolin},
4 journal = {Genome Research},
5 volume = {34},
6 number = {7},
7 pages = {1052--1065},
8 year = {2024},
9 doi = {10.1101/gr.279044.124}
10}[!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