From be76912df2bcc52897308e0c41fb75277d86a983 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 30 Aug 2020 22:49:17 +0530 Subject: added os.system call --- app/dock-single.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"))) -- cgit v1.2.3