Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
80ec937
1
Parent(s):
5f24d6a
Update README and app.py to enhance project description and technical details for BASIS-China iGEM 2025 deployment of Tranception
Browse files
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
---
|
2 |
title: Transeption IGEM BASISCHINA 2025
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
sdk_version: 5.34.2
|
8 |
app_file: app.py
|
@@ -15,4 +15,34 @@ models:
|
|
15 |
- PascalNotin/Tranception_Large
|
16 |
---
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
title: Transeption IGEM BASISCHINA 2025
|
3 |
+
emoji: 🧬
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: green
|
6 |
sdk: gradio
|
7 |
sdk_version: 5.34.2
|
8 |
app_file: app.py
|
|
|
15 |
- PascalNotin/Tranception_Large
|
16 |
---
|
17 |
|
18 |
+
# Tranception Protein Fitness Prediction - BASIS-China iGEM 2025
|
19 |
+
|
20 |
+
Welcome to BASIS-China iGEM Team's deployment of Tranception on Hugging Face Spaces!
|
21 |
+
|
22 |
+
## About This Project
|
23 |
+
|
24 |
+
This is an implementation of the Tranception model for protein fitness prediction, deployed by the BASIS-China iGEM Team 2025. Our goal is to make advanced protein engineering tools accessible to the synthetic biology community.
|
25 |
+
|
26 |
+
### Features
|
27 |
+
- **In silico directed evolution**: Iteratively improve protein fitness through single amino acid substitutions
|
28 |
+
- **Comprehensive fitness analysis**: Generate heatmaps showing fitness scores for all possible mutations
|
29 |
+
- **Zero GPU support**: Leverages Hugging Face's dynamic GPU allocation for efficient inference
|
30 |
+
- **Multiple model sizes**: Choose between Small, Medium, and Large models based on your needs
|
31 |
+
|
32 |
+
### Technical Implementation
|
33 |
+
This deployment utilizes Hugging Face's Zero GPU infrastructure, which:
|
34 |
+
- Dynamically allocates H200 GPU resources when available
|
35 |
+
- Seamlessly falls back to CPU processing when GPUs are unavailable
|
36 |
+
- Ensures efficient resource management for all users
|
37 |
+
|
38 |
+
## About BASIS-China iGEM Team
|
39 |
+
|
40 |
+
We are a high school synthetic biology team participating in the International Genetically Engineered Machine (iGEM) competition. Our 2025 project focuses on protein engineering and computational biology applications.
|
41 |
+
|
42 |
+
## Credits
|
43 |
+
|
44 |
+
This implementation is based on:
|
45 |
+
**Tranception: Protein Fitness Prediction with Autoregressive Transformers and Inference-time Retrieval**
|
46 |
+
by Pascal Notin, Mafalda Dias, Jonathan Frazer, Javier Marchena-Hurtado, Aidan N. Gomez, Debora S. Marks, and Yarin Gal.
|
47 |
+
|
48 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -390,9 +390,10 @@ tranception_design = gr.Blocks()
|
|
390 |
|
391 |
with tranception_design:
|
392 |
gr.Markdown("# In silico directed evolution for protein redesign with Tranception")
|
393 |
-
gr.Markdown("## 🧬
|
394 |
-
gr.Markdown("
|
395 |
-
gr.Markdown("
|
|
|
396 |
|
397 |
with gr.Tabs():
|
398 |
with gr.TabItem("Input"):
|
@@ -476,9 +477,11 @@ with tranception_design:
|
|
476 |
)
|
477 |
|
478 |
gr.Markdown("<p>You may now use the output mutated sequence above as the starting sequence for another round of in silico directed evolution.</p>")
|
479 |
-
gr.Markdown("
|
|
|
|
|
480 |
gr.Markdown("<p><b>Tranception: Protein Fitness Prediction with Autoregressive Transformers and Inference-time Retrieval</b><br>Pascal Notin, Mafalda Dias, Jonathan Frazer, Javier Marchena-Hurtado, Aidan N. Gomez, Debora S. Marks<sup>*</sup>, Yarin Gal<sup>*</sup><br><sup>* equal senior authorship</sup></p>")
|
481 |
-
gr.Markdown("Links: <a href='https://proceedings.mlr.press/v162/notin22a.html' target='_blank'>Paper</a> <a href='https://github.com/OATML-Markslab/Tranception' target='_blank'>Code</a> <a href='https://sites.google.com/view/proteingym/substitutions' target='_blank'>ProteinGym</a>")
|
482 |
|
483 |
if __name__ == "__main__":
|
484 |
# Configure queue for better resource management
|
|
|
390 |
|
391 |
with tranception_design:
|
392 |
gr.Markdown("# In silico directed evolution for protein redesign with Tranception")
|
393 |
+
gr.Markdown("## 🧬 BASIS-China iGEM Team 2025 - Protein Engineering Platform")
|
394 |
+
gr.Markdown("### Welcome to BASIS-China's implementation of Tranception on Hugging Face Spaces!")
|
395 |
+
gr.Markdown("We are the BASIS-China iGEM team, and we're excited to present our deployment of the Tranception model for protein fitness prediction. This tool enables in silico directed evolution to iteratively improve protein fitness through single amino acid substitutions. At each step, Tranception computes log likelihood ratios for all possible mutations compared to the starting sequence, generating fitness heatmaps and recommendations to guide protein engineering.")
|
396 |
+
gr.Markdown("**Technical Details**: This deployment leverages Hugging Face's Zero GPU infrastructure, which dynamically allocates H200 GPU resources when available. This allows for efficient inference while managing computational resources effectively. When GPU resources are temporarily unavailable, the system seamlessly falls back to CPU processing.")
|
397 |
|
398 |
with gr.Tabs():
|
399 |
with gr.TabItem("Input"):
|
|
|
477 |
)
|
478 |
|
479 |
gr.Markdown("<p>You may now use the output mutated sequence above as the starting sequence for another round of in silico directed evolution.</p>")
|
480 |
+
gr.Markdown("### About BASIS-China iGEM Team")
|
481 |
+
gr.Markdown("We are a high school synthetic biology team participating in the International Genetically Engineered Machine (iGEM) competition. Our 2025 project focuses on protein engineering and computational biology applications. This Tranception deployment is part of our broader effort to make advanced protein design tools accessible to the synthetic biology community.")
|
482 |
+
gr.Markdown("### About Tranception")
|
483 |
gr.Markdown("<p><b>Tranception: Protein Fitness Prediction with Autoregressive Transformers and Inference-time Retrieval</b><br>Pascal Notin, Mafalda Dias, Jonathan Frazer, Javier Marchena-Hurtado, Aidan N. Gomez, Debora S. Marks<sup>*</sup>, Yarin Gal<sup>*</sup><br><sup>* equal senior authorship</sup></p>")
|
484 |
+
gr.Markdown("Links: <a href='https://proceedings.mlr.press/v162/notin22a.html' target='_blank'>Paper</a> <a href='https://github.com/OATML-Markslab/Tranception' target='_blank'>Code</a> <a href='https://sites.google.com/view/proteingym/substitutions' target='_blank'>ProteinGym</a> <a href='https://igem.org/teams/5247' target='_blank'>BASIS-China iGEM Team</a>")
|
485 |
|
486 |
if __name__ == "__main__":
|
487 |
# Configure queue for better resource management
|