Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,11 +17,12 @@ def predict(input_mol, view_str, chains):
|
|
17 |
chain_dict = json.loads(chains)
|
18 |
|
19 |
print(chain_dict)
|
|
|
20 |
|
21 |
# sort keys in dict and add colors to chain_str
|
22 |
for chain in sorted(chain_dict.keys()):
|
23 |
chain_str += f" {chain_dict[chain]}"
|
24 |
-
|
25 |
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")
|
26 |
|
27 |
#read content of file
|
|
|
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
|