Spaces:
Runtime error
Runtime error
Commit
·
b7a0794
1
Parent(s):
3ea8656
Update app.py
Browse files
app.py
CHANGED
@@ -15,12 +15,12 @@ pdb_filename = "test.pdb"
|
|
15 |
pdb_string = response.content.decode('utf-8')
|
16 |
with open(pdb_filename, "w") as out:
|
17 |
out.write(pdb_string)
|
|
|
18 |
|
19 |
# 1A2C
|
20 |
# Structure of thrombin inhibited by AERUGINOSIN298-A from a BLUE-GREEN ALGA
|
21 |
-
xyzview = py3Dmol.view(width=400, height=
|
22 |
-
xyzview.addModelsAsFrames(pdb_filename)
|
23 |
-
xyzview.setStyle({'cartoon':{'color':'spectrum'}})
|
24 |
print("Set style")
|
25 |
showmol(xyzview, height = 500,width=800)
|
26 |
print("Displayed")
|
|
|
15 |
pdb_string = response.content.decode('utf-8')
|
16 |
with open(pdb_filename, "w") as out:
|
17 |
out.write(pdb_string)
|
18 |
+
print(pdb_string)
|
19 |
|
20 |
# 1A2C
|
21 |
# Structure of thrombin inhibited by AERUGINOSIN298-A from a BLUE-GREEN ALGA
|
22 |
+
xyzview = py3Dmol.view(width=400, height=400)
|
23 |
+
xyzview.addModelsAsFrames([pdb_filename])
|
|
|
24 |
print("Set style")
|
25 |
showmol(xyzview, height = 500,width=800)
|
26 |
print("Displayed")
|