Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co/spaces/simonduerr/metal3d
Browse files- app.py +4 -0
- requirements.txt +3 -2
- utils/helpers.py +1 -1
- utils/voxelization.py +1 -1
app.py
CHANGED
@@ -16,6 +16,10 @@ from utils.model import Model
|
|
16 |
import numpy as np
|
17 |
|
18 |
import os
|
|
|
|
|
|
|
|
|
19 |
|
20 |
def update(inp, file, mode):
|
21 |
try:
|
|
|
16 |
import numpy as np
|
17 |
|
18 |
import os
|
19 |
+
import moleculekit
|
20 |
+
|
21 |
+
print(moleculekit.__version__)
|
22 |
+
|
23 |
|
24 |
def update(inp, file, mode):
|
25 |
try:
|
requirements.txt
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
-
moleculekit
|
2 |
torch
|
3 |
py3Dmol
|
4 |
pdb2pqr
|
5 |
scipy
|
6 |
ipywidgets
|
7 |
numpy
|
8 |
-
|
|
|
|
1 |
+
moleculekit==1.1.1
|
2 |
torch
|
3 |
py3Dmol
|
4 |
pdb2pqr
|
5 |
scipy
|
6 |
ipywidgets
|
7 |
numpy
|
8 |
+
scikit-learn
|
9 |
+
propka
|
utils/helpers.py
CHANGED
@@ -109,7 +109,7 @@ def get_all_metalbinding_resids(pdb_file):
|
|
109 |
"""
|
110 |
|
111 |
try:
|
112 |
-
prot = Molecule(
|
113 |
except:
|
114 |
exit("could not read file")
|
115 |
prot.filter("protein")
|
|
|
109 |
"""
|
110 |
|
111 |
try:
|
112 |
+
prot = Molecule('files/2CBA.pdb')
|
113 |
except:
|
114 |
exit("could not read file")
|
115 |
prot.filter("protein")
|
utils/voxelization.py
CHANGED
@@ -177,7 +177,7 @@ def processStructures(pdb_file, resids, clean=True):
|
|
177 |
|
178 |
# load molecule using MoleculeKit
|
179 |
try:
|
180 |
-
prot = Molecule(
|
181 |
except:
|
182 |
raise IOError("could not read pdbfile")
|
183 |
|
|
|
177 |
|
178 |
# load molecule using MoleculeKit
|
179 |
try:
|
180 |
+
prot = Molecule('files/2CBA.pdb')
|
181 |
except:
|
182 |
raise IOError("could not read pdbfile")
|
183 |
|