clean
Browse files- .gitignore +1 -0
- README.md +1 -1
- app.py +2 -4
- results/d2d95889-preds.model_idx_0.cif +0 -0
- results/d2d95889-preds.model_idx_1.cif +0 -0
- results/d2d95889-preds.model_idx_2.cif +0 -0
- results/d2d95889-preds.model_idx_3.cif +0 -0
- results/d2d95889-preds.model_idx_4.cif +0 -0
- results/d2d95889-scores.model_idx_0.npz +0 -3
- results/d2d95889-scores.model_idx_1.npz +0 -3
- results/d2d95889-scores.model_idx_2.npz +0 -3
- results/d2d95889-scores.model_idx_3.npz +0 -3
- results/d2d95889-scores.model_idx_4.npz +0 -3
.gitignore
CHANGED
|
@@ -19,6 +19,7 @@ wheels/
|
|
| 19 |
*.egg-info/
|
| 20 |
.installed.cfg
|
| 21 |
*.egg
|
|
|
|
| 22 |
|
| 23 |
# Virtual Environment
|
| 24 |
.env
|
|
|
|
| 19 |
*.egg-info/
|
| 20 |
.installed.cfg
|
| 21 |
*.egg
|
| 22 |
+
results/*
|
| 23 |
|
| 24 |
# Virtual Environment
|
| 25 |
.env
|
README.md
CHANGED
|
@@ -9,7 +9,7 @@ sdk_version: 5.33.0
|
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: apache-2.0
|
| 12 |
-
short_description: MCP server to simulate folding of proteins
|
| 13 |
---
|
| 14 |
|
| 15 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: apache-2.0
|
| 12 |
+
short_description: MCP server to simulate folding of proteins with Chai1
|
| 13 |
---
|
| 14 |
|
| 15 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -54,14 +54,12 @@ def compute_Chai1(
|
|
| 54 |
|
| 55 |
print(f"🧬 saving results to disk locally in {output_dir}")
|
| 56 |
for ii, (scores, cif) in enumerate(results):
|
| 57 |
-
print(ii, scores
|
| 58 |
(Path(output_dir) / f"{run_id}-scores.model_idx_{ii}.npz").write_bytes(scores)
|
| 59 |
(Path(output_dir) / f"{run_id}-preds.model_idx_{ii}.cif").write_text(cif)
|
| 60 |
|
| 61 |
-
|
| 62 |
-
print(str(output_dir)+"/"+str(run_id)+"-preds.model_idx_"+str(ii)+".cif")
|
| 63 |
cif_name = str(output_dir)+"/"+str(run_id)+"-preds.model_idx_"+str(ii)+".cif"
|
| 64 |
-
print(cif_name)
|
| 65 |
pdb_name = cif_name.split('.cif')[0] + '.pdb'
|
| 66 |
st = gemmi.read_structure(cif_name)
|
| 67 |
st.write_minimal_pdb(pdb_name)
|
|
|
|
| 54 |
|
| 55 |
print(f"🧬 saving results to disk locally in {output_dir}")
|
| 56 |
for ii, (scores, cif) in enumerate(results):
|
| 57 |
+
print(ii, scores)
|
| 58 |
(Path(output_dir) / f"{run_id}-scores.model_idx_{ii}.npz").write_bytes(scores)
|
| 59 |
(Path(output_dir) / f"{run_id}-preds.model_idx_{ii}.cif").write_text(cif)
|
| 60 |
|
| 61 |
+
# Take the last cif file and convert it to pdb
|
|
|
|
| 62 |
cif_name = str(output_dir)+"/"+str(run_id)+"-preds.model_idx_"+str(ii)+".cif"
|
|
|
|
| 63 |
pdb_name = cif_name.split('.cif')[0] + '.pdb'
|
| 64 |
st = gemmi.read_structure(cif_name)
|
| 65 |
st.write_minimal_pdb(pdb_name)
|
results/d2d95889-preds.model_idx_0.cif
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/d2d95889-preds.model_idx_1.cif
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/d2d95889-preds.model_idx_2.cif
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/d2d95889-preds.model_idx_3.cif
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/d2d95889-preds.model_idx_4.cif
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
results/d2d95889-scores.model_idx_0.npz
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8e431a60d62e4afef3e62ea2068e26796bd9e8f483ebb71ad67643ba0c05256e
|
| 3 |
-
size 1995
|
|
|
|
|
|
|
|
|
|
|
|
results/d2d95889-scores.model_idx_1.npz
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6de9782ee4a4f68bc73ec37a88af68205de07ee4b4e4b1d197e43c5ceb0eec1f
|
| 3 |
-
size 1995
|
|
|
|
|
|
|
|
|
|
|
|
results/d2d95889-scores.model_idx_2.npz
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d3baf4496d1d57efd0dd24459857e2d5b6bcc8db684b478bb4fdf53e328acd50
|
| 3 |
-
size 1995
|
|
|
|
|
|
|
|
|
|
|
|
results/d2d95889-scores.model_idx_3.npz
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1c71ff3f71892367872265d2ea4b03b9378e9312310374d867d938355e569780
|
| 3 |
-
size 1995
|
|
|
|
|
|
|
|
|
|
|
|
results/d2d95889-scores.model_idx_4.npz
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6532d0c41c0700cc338c500d2bb305fcf1618555d5540b7163b94e3557111e22
|
| 3 |
-
size 1995
|
|
|
|
|
|
|
|
|
|
|
|