simonduerr commited on
Commit
ba0c8e7
·
verified ·
1 Parent(s): 3eccba1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -16,13 +16,9 @@ def predict(input_mol, view_str, chains):
16
  chain_str = ""
17
  chain_dict = json.loads(chains)
18
 
19
- print(chain_dict)
20
- print(type(chain_dict))
21
-
22
  # sort keys in dict and add colors to chain_str
23
  for chain in sorted(chain_dict.keys()):
24
- chain_str += f" {chain_dict[chain]}"
25
- print(chain_str, "chainstring")
26
  os.system(f"cellscape cartoon --pdb {input_mol.name} --outline chain --colors {chain_str} --depth flat --back_outline --view view_matrix --save outline_all.svg")
27
 
28
  #read content of file
 
16
  chain_str = ""
17
  chain_dict = json.loads(chains)
18
 
 
 
 
19
  # sort keys in dict and add colors to chain_str
20
  for chain in sorted(chain_dict.keys()):
21
+ chain_str += f" '{chain_dict[chain]}'"
 
22
  os.system(f"cellscape cartoon --pdb {input_mol.name} --outline chain --colors {chain_str} --depth flat --back_outline --view view_matrix --save outline_all.svg")
23
 
24
  #read content of file