ThorbenFroehlking commited on
Commit
ad64312
·
1 Parent(s): b5108ae
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +3 -2
  2. app.py +3 -2
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -243,7 +243,7 @@ def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
243
 
244
  pymol_commands += f"""
245
  # PyMOL Visualization Commands
246
- load {os.path.abspath(pdb_path)}, protein
247
  hide everything, all
248
  show cartoon, chain {segment}
249
  color white, chain {segment}
@@ -273,7 +273,8 @@ def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
273
  with open(prediction_file, "w") as f:
274
  f.write(result_str)
275
 
276
- return pymol_commands, mol_vis, [prediction_file,scored_pdb]
 
277
 
278
  def molecule(input_pdb, residue_scores=None, segment='A'):
279
  # More granular scoring for visualization
 
243
 
244
  pymol_commands += f"""
245
  # PyMOL Visualization Commands
246
+ fetch {pdb_id}, protein
247
  hide everything, all
248
  show cartoon, chain {segment}
249
  color white, chain {segment}
 
273
  with open(prediction_file, "w") as f:
274
  f.write(result_str)
275
 
276
+ return pymol_commands, mol_vis, [prediction_file, scored_pdb],raw_residue_scores,norm_residue_scores
277
+
278
 
279
  def molecule(input_pdb, residue_scores=None, segment='A'):
280
  # More granular scoring for visualization
app.py CHANGED
@@ -243,7 +243,7 @@ def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
243
 
244
  pymol_commands += f"""
245
  # PyMOL Visualization Commands
246
- load {os.path.abspath(pdb_path)}, protein
247
  hide everything, all
248
  show cartoon, chain {segment}
249
  color white, chain {segment}
@@ -273,7 +273,8 @@ def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
273
  with open(prediction_file, "w") as f:
274
  f.write(result_str)
275
 
276
- return pymol_commands, mol_vis, [prediction_file,scored_pdb]
 
277
 
278
  def molecule(input_pdb, residue_scores=None, segment='A'):
279
  # More granular scoring for visualization
 
243
 
244
  pymol_commands += f"""
245
  # PyMOL Visualization Commands
246
+ fetch {pdb_id}, protein
247
  hide everything, all
248
  show cartoon, chain {segment}
249
  color white, chain {segment}
 
273
  with open(prediction_file, "w") as f:
274
  f.write(result_str)
275
 
276
+ return pymol_commands, mol_vis, [prediction_file, scored_pdb],raw_residue_scores,norm_residue_scores
277
+
278
 
279
  def molecule(input_pdb, residue_scores=None, segment='A'):
280
  # More granular scoring for visualization