Transformers
Safetensors
English
esmfold2
biology
esm
protein
protein-structure-prediction
structure-prediction
protein-design
3d-structure
confidence-estimation
molecular-dynamics
Instructions to use biohub/ESMFold2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use biohub/ESMFold2 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("biohub/ESMFold2", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -55,6 +55,7 @@ pip install esm@git+https://github.com/Biohub/esm.git@c94ed8d
|
|
| 55 |
You can fold your first protein with:
|
| 56 |
|
| 57 |
```py
|
|
|
|
| 58 |
from transformers.models.esmfold2.modeling_esmfold2 import ESMFold2Model
|
| 59 |
|
| 60 |
# Ubiquitin (PDB 1UBQ)
|
|
@@ -70,6 +71,7 @@ print(f"pLDDT mean: {float(output['plddt'].mean()):.3f}, pTM: {float(output['ptm
|
|
| 70 |
You can also fold complex biomolecules — proteins, DNA/RNA (with modified residues), and small-molecule ligands all at once. Here's an example folding the HhaI DNA methyltransferase + its cognate DNA (with a trapped 5-fluoro-2′-deoxycytidine, CCD `C36`) + the SAH cofactor (PDB [1MHT](https://www.rcsb.org/structure/1MHT)):
|
| 71 |
|
| 72 |
```py
|
|
|
|
| 73 |
from esm.models.esmfold2 import (
|
| 74 |
DNAInput,
|
| 75 |
ESMFold2InputBuilder,
|
|
@@ -120,6 +122,7 @@ with open("1mht_pred.cif", "w") as f:
|
|
| 120 |
For the Biohub API, first generate an [API key](https://biohub.ai/developer-console/api-keys) and add it to your Biohub account. The code below assumes the environment variable `ESM_API_KEY=$YOUR_API_KEY`.
|
| 121 |
|
| 122 |
```py
|
|
|
|
| 123 |
import os
|
| 124 |
|
| 125 |
from esm.models.esmfold2 import (
|
|
|
|
| 55 |
You can fold your first protein with:
|
| 56 |
|
| 57 |
```py
|
| 58 |
+
# pip install esm@git+https://github.com/Biohub/esm.git@c94ed8d
|
| 59 |
from transformers.models.esmfold2.modeling_esmfold2 import ESMFold2Model
|
| 60 |
|
| 61 |
# Ubiquitin (PDB 1UBQ)
|
|
|
|
| 71 |
You can also fold complex biomolecules — proteins, DNA/RNA (with modified residues), and small-molecule ligands all at once. Here's an example folding the HhaI DNA methyltransferase + its cognate DNA (with a trapped 5-fluoro-2′-deoxycytidine, CCD `C36`) + the SAH cofactor (PDB [1MHT](https://www.rcsb.org/structure/1MHT)):
|
| 72 |
|
| 73 |
```py
|
| 74 |
+
# pip install esm@git+https://github.com/Biohub/esm.git@c94ed8d
|
| 75 |
from esm.models.esmfold2 import (
|
| 76 |
DNAInput,
|
| 77 |
ESMFold2InputBuilder,
|
|
|
|
| 122 |
For the Biohub API, first generate an [API key](https://biohub.ai/developer-console/api-keys) and add it to your Biohub account. The code below assumes the environment variable `ESM_API_KEY=$YOUR_API_KEY`.
|
| 123 |
|
| 124 |
```py
|
| 125 |
+
# pip install esm@git+https://github.com/Biohub/esm.git@c94ed8d
|
| 126 |
import os
|
| 127 |
|
| 128 |
from esm.models.esmfold2 import (
|