Spaces:
Running
Running
Update
Browse files- .ipynb_checkpoints/app-checkpoint.py +2 -2
- app.py +2 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -27,7 +27,7 @@ from gradio_molecule3d import Molecule3D
|
|
27 |
# Biopython imports
|
28 |
from Bio.PDB import PDBParser, Select, PDBIO
|
29 |
from Bio.PDB.DSSP import DSSP
|
30 |
-
|
31 |
|
32 |
from matplotlib import cm # For color mapping
|
33 |
from matplotlib.colors import Normalize
|
@@ -225,7 +225,7 @@ def score_to_color(score):
|
|
225 |
|
226 |
def process_pdb(pdb_id):
|
227 |
# Fetch PDB file
|
228 |
-
pdbl = PDBList
|
229 |
pdb_path = pdbl.retrieve_pdb_file(pdb_id, pdir='pdb_files', file_format='pdb')
|
230 |
|
231 |
if not pdb_path or not os.path.exists(pdb_path):
|
|
|
27 |
# Biopython imports
|
28 |
from Bio.PDB import PDBParser, Select, PDBIO
|
29 |
from Bio.PDB.DSSP import DSSP
|
30 |
+
from Bio.PDB import PDBList # Corrected import
|
31 |
|
32 |
from matplotlib import cm # For color mapping
|
33 |
from matplotlib.colors import Normalize
|
|
|
225 |
|
226 |
def process_pdb(pdb_id):
|
227 |
# Fetch PDB file
|
228 |
+
pdbl = PDBList() # Corrected instantiation
|
229 |
pdb_path = pdbl.retrieve_pdb_file(pdb_id, pdir='pdb_files', file_format='pdb')
|
230 |
|
231 |
if not pdb_path or not os.path.exists(pdb_path):
|
app.py
CHANGED
@@ -27,7 +27,7 @@ from gradio_molecule3d import Molecule3D
|
|
27 |
# Biopython imports
|
28 |
from Bio.PDB import PDBParser, Select, PDBIO
|
29 |
from Bio.PDB.DSSP import DSSP
|
30 |
-
|
31 |
|
32 |
from matplotlib import cm # For color mapping
|
33 |
from matplotlib.colors import Normalize
|
@@ -225,7 +225,7 @@ def score_to_color(score):
|
|
225 |
|
226 |
def process_pdb(pdb_id):
|
227 |
# Fetch PDB file
|
228 |
-
pdbl = PDBList
|
229 |
pdb_path = pdbl.retrieve_pdb_file(pdb_id, pdir='pdb_files', file_format='pdb')
|
230 |
|
231 |
if not pdb_path or not os.path.exists(pdb_path):
|
|
|
27 |
# Biopython imports
|
28 |
from Bio.PDB import PDBParser, Select, PDBIO
|
29 |
from Bio.PDB.DSSP import DSSP
|
30 |
+
from Bio.PDB import PDBList # Corrected import
|
31 |
|
32 |
from matplotlib import cm # For color mapping
|
33 |
from matplotlib.colors import Normalize
|
|
|
225 |
|
226 |
def process_pdb(pdb_id):
|
227 |
# Fetch PDB file
|
228 |
+
pdbl = PDBList() # Corrected instantiation
|
229 |
pdb_path = pdbl.retrieve_pdb_file(pdb_id, pdir='pdb_files', file_format='pdb')
|
230 |
|
231 |
if not pdb_path or not os.path.exists(pdb_path):
|