Views
No views yet

@inproceedings{abdine2024prot2text,
title={Prot2Text: Multimodal Protein's Function Generation with GNNs and Transformers},
author={Abdine, Hadi and Chatzianastasis, Michail and Bouyioukos, Costas and Vazirgiannis, Michalis},
booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
volume={38},
pages={10757--10765},
year={2024}
}| Model | #params | BLEU Score | ROUGE-1 | ROUGE-2 | ROUGE-L | BERT Score | Link |
|---|---|---|---|---|---|---|---|
| Prot2TextSMALL | 256M | 30.01 | 45.78 | 38.08 | 43.97 | 82.60 | v1.0- v1.1 |
| Prot2TextBASE | 283M | 35.11 | 50.59 | 42.71 | 48.49 | 84.30 | v1.0- v1.1 |
| Prot2TextMEDIUM | 398M | 36.51 | 52.13 | 44.17 | 50.04 | 84.83 | v1.0- v1.1 |
| Prot2TextLARGE | 898M | 36.29 | 53.68 | 45.60 | 51.40 | 85.20 | v1.0- v1.1 |
| Esm2TextBASE | 225M | 32.11 | 47.46 | 39.18 | 45.31 | 83.21 | v1.0- v1.1 |
1pip install -U transformers
2git clone https://github.com/a-r-j/graphein.git
3pip install -e graphein/
4pip install torch
5pip install torch_geometric
6pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv
7sudo apt-get install dssp
8sudo ln -s /usr/bin/mkdssp /usr/bin/dssp1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3tokenizer = AutoTokenizer.from_pretrained('habdine/Prot2Text-Base-v1-1',
4 trust_remote_code=True)
5model = AutoModelForCausalLM.from_pretrained('habdine/Prot2Text-Base-v1-1',
6 trust_remote_code=True)
7
8function = model.generate_protein_description(protein_pdbID='Q10MK9',
9 tokenizer=tokenizer,
10 device='cuda' # replace with 'mps' to run on a Mac device
11 )
12
13print(function)
14# 'Carboxylate--CoA ligase that may use 4-coumarate as substrate. Follows a two-step reaction mechanism, wherein the carboxylate substrate first undergoes adenylation by ATP, followed by a thioesterification in the presence of CoA to yield the final CoA thioester.'1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3tokenizer = AutoTokenizer.from_pretrained('habdine/Esm2Text-Base-v1-1',
4 trust_remote_code=True)
5model = AutoModelForCausalLM.from_pretrained('habdine/Esm2Text-Base-v1-1',
6 trust_remote_code=True)
7
8function = model.generate_protein_description(protein_sequence='AEQAERYEEMVEFMEKL',
9 tokenizer=tokenizer,
10 device='cuda' # replace with 'mps' to run on a Mac device
11 )
12
13print(function)
14# 'A cytochrome b6-f complex catalyzes the calcium-dependent hydrolysis of the 2-acyl groups in 3-sn-phosphoglycerides. Its physiological function is not known.'