stochasticribosome commited on
Commit
3ee83c0
1 Parent(s): 3ed3216

Enable from PDB id

Browse files
Files changed (1) hide show
  1. main.py +2 -5
main.py CHANGED
@@ -66,10 +66,7 @@ def get_offset(pdb):
66
 
67
 
68
  def predict(pdb_code, pdb_file):
69
- #path_to_pdb = get_pdb(pdb_code=pdb_code, filepath=pdb_file)
70
-
71
- #pdb = open(path_to_pdb, "r").read()
72
- # switch to misato env if not running from container
73
  mdh5_file = "inference_for_md.hdf5"
74
  md_H5File = h5py.File(mdh5_file)
75
 
@@ -102,7 +99,7 @@ def predict(pdb_code, pdb_file):
102
  topN = 100
103
  topN_ind = np.argsort(adaptability)[::-1][:topN]
104
 
105
- pdb = open(pdb_file.name, "r").read()
106
 
107
  view = py3Dmol.view(width=600, height=400)
108
  view.setBackgroundColor('white')
 
66
 
67
 
68
  def predict(pdb_code, pdb_file):
69
+ path_to_pdb = get_pdb(pdb_code=pdb_code, filepath=pdb_file)
 
 
 
70
  mdh5_file = "inference_for_md.hdf5"
71
  md_H5File = h5py.File(mdh5_file)
72
 
 
99
  topN = 100
100
  topN_ind = np.argsort(adaptability)[::-1][:topN]
101
 
102
+ pdb = open(path_to_pdb, "r").read()
103
 
104
  view = py3Dmol.view(width=600, height=400)
105
  view.setBackgroundColor('white')