aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-08-30 22:49:17 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-08-30 22:49:17 +0530
commitbe76912df2bcc52897308e0c41fb75277d86a983 (patch)
tree80d61be6aca0ab7af215bfb3c483ad3e21d2fda9
parent422a7b2e721b1afb475db6ab98416e86258e46eb (diff)
added os.system call
-rw-r--r--app/dock-single.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/dock-single.py b/app/dock-single.py
index 9f603e5..281cad3 100644
--- a/app/dock-single.py
+++ b/app/dock-single.py
@@ -97,7 +97,7 @@ def get3DModel(protein,ligand):
cmd = session.cmd
cmd.load(protein,"target")
cmd.load(ligand,"ligand")
- cmd.save("model.gltf")
+ cmd.save("model.dae")
session.stop()
def removeWater(pdbpath):
@@ -242,6 +242,7 @@ with tempfile.TemporaryDirectory() as directory:
make_archive(zi, 'zip', directory)
copyfile("report.pdf",os.path.join(reportDirectory,(str(jobID)+".pdf")))
get3DModel(pdbpath,"%s_out.pdbqt"%(records[4]))
+ os.system("collada2gltf -i model.dae -o model.gltf")
copyfile("model.gltf",os.path.join(modelDirectory,(str(jobID)+".gltf")))
os.system("docker run -it --rm -v $(PWD):/usr/app leon/usd-from-gltf:latest model.gltf model.usdz")
copyfile("model.usdz",os.path.join(modelDirectory,(str(jobID)+".usdz")))