From 4263cbcb9a6eac7bfe4a45445602cc097b64c120 Mon Sep 17 00:00:00 2001 From: mmagnus Date: Fri, 21 Jan 2022 17:46:38 +0000 Subject: [PATCH] web: diffpdb add check box for using --names --- rna_tools/tools/webserver-engine/app/templates/diffpdb.html | 5 +++++ rna_tools/tools/webserver-engine/app/views.py | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/rna_tools/tools/webserver-engine/app/templates/diffpdb.html b/rna_tools/tools/webserver-engine/app/templates/diffpdb.html index 57034fff1..84a465fd8 100644 --- a/rna_tools/tools/webserver-engine/app/templates/diffpdb.html +++ b/rna_tools/tools/webserver-engine/app/templates/diffpdb.html @@ -51,6 +51,7 @@ function go() { $.ajax({ url: "/run/diffpdb/{{ j.job_id }}", + data: { names: $('#names').is(':checked')}, success: function(d) { $("#log_txt").html(d['log']); if (d['reload']==true){ @@ -81,6 +82,10 @@

diffpdb

+ +
{{ log | safe }}

The raw output files for each step of the pipeline can be found here

diff --git a/rna_tools/tools/webserver-engine/app/views.py b/rna_tools/tools/webserver-engine/app/views.py index 178416649..c276f9460 100644 --- a/rna_tools/tools/webserver-engine/app/views.py +++ b/rna_tools/tools/webserver-engine/app/views.py @@ -350,9 +350,13 @@ def run(request, tool, job_id): files = glob.glob(job_dir + "/*pdb") files.sort(key=os.path.getmtime) files = [os.path.basename(f) for f in files] + r = request.GET['names'].strip() + opt = '' + if r == 'true': + opt = ' --names ' with open(job_dir + '/run.sh', 'w') as f: f.write(""" -diffpdb.py --method diff %s %s &> log.txt \n +diffpdb.py """ + opt + """ --method diff %s %s &> log.txt \n """ % (files[0], files[1])) if tool == 'extract':