From 8ec4944df451e39a289b8f679edc8a9096299c0f Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Thu, 17 Sep 2020 00:01:58 +0530 Subject: [PATCH] refactored names for docking --- app/templates/base.html | 8 ++++---- .../{dock_upload_single.html => dock_automatic.html} | 2 +- app/templates/{dock_upload.html => dock_manual.html} | 2 +- app/templates/home.html | 4 ++-- app/views.py | 12 ++++++------ 5 files changed, 14 insertions(+), 14 deletions(-) rename app/templates/{dock_upload_single.html => dock_automatic.html} (91%) rename app/templates/{dock_upload.html => dock_manual.html} (96%) diff --git a/app/templates/base.html b/app/templates/base.html index f92d59d..d86facc 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -34,8 +34,8 @@ Dock and Report
  • @@ -86,8 +86,8 @@ diff --git a/app/templates/dock_upload_single.html b/app/templates/dock_automatic.html similarity index 91% rename from app/templates/dock_upload_single.html rename to app/templates/dock_automatic.html index 5329972..382948f 100644 --- a/app/templates/dock_upload_single.html +++ b/app/templates/dock_automatic.html @@ -2,7 +2,7 @@ {% set active_page = "dock" %} {% block main %}

    Enter Your Configuration

    -
    + {% include 'flash_messages.html' %} {{ form.csrf_token }}
    diff --git a/app/templates/dock_upload.html b/app/templates/dock_manual.html similarity index 96% rename from app/templates/dock_upload.html rename to app/templates/dock_manual.html index 43dcd63..b549628 100644 --- a/app/templates/dock_upload.html +++ b/app/templates/dock_manual.html @@ -2,7 +2,7 @@ {% set active_page = "dock" %} {% block main %}

    Enter Your Configuration

    - + {% include 'flash_messages.html' %} {{ form.csrf_token }}
    diff --git a/app/templates/home.html b/app/templates/home.html index 1f7f9e5..bf00905 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -7,8 +7,8 @@

    The following are the currently active modules

    Docking

      -
    • Dock and Report (Manual) - You can enter your AutoDock Vina configuration, upload the PDBQT files and it will perform the molecular docking and generate a PDF with proper visualisations and protein-interaction profillings (Using PLIP)
    • -
    • Dock and Report (Automatic) - You just enter in the PDB Code, target compound's SMILES structure and name, it will automatically find a binding location and then perform docking and report generation
    • +
    • Dock and Report (Manual) - You can enter your AutoDock Vina configuration, upload the PDBQT files and it will perform the molecular docking and generate a PDF with proper visualisations and protein-interaction profillings (Using PLIP)
    • +
    • Dock and Report (Automatic) - You just enter in the PDB Code, target compound's SMILES structure and name, it will automatically find a binding location and then perform docking and report generation

    Drug Designing

    diff --git a/app/views.py b/app/views.py index fc1620b..7fe1daa 100644 --- a/app/views.py +++ b/app/views.py @@ -273,8 +273,8 @@ def generate(): return render_template('generate.html',expName=j["exp_name"],epochs=j["num_epochs"],optimizer=j["optimizer"].capitalize(), form=form) -@app.route('/Dock', methods=['GET', 'POST']) -def dock_upload(): +@app.route('/Dock-Manual', methods=['GET', 'POST']) +def dock_manual(): form = curieForm() if request.method == 'POST' and form.validate_on_submit(): @@ -317,10 +317,10 @@ def dock_upload(): return render_template('display_result.html', filename="OwO", description=description,job=jobID) flash_errors(form) - return render_template('dock_upload.html', form=form) + return render_template('dock_manual.html', form=form) -@app.route('/Dock-Single', methods=['GET', 'POST']) -def dock_upload_single(): +@app.route('/Dock-Automatic', methods=['GET', 'POST']) +def dock_automatic(): form = dockSingleForm() if request.method == 'POST' and form.validate_on_submit(): @@ -354,7 +354,7 @@ def dock_upload_single(): return render_template('display_result.html', filename="OwO", description=description,job=jobID) flash_errors(form) - return render_template('dock_upload_single.html', form=form) + return render_template('dock_automatic.html', form=form) ### # The functions below should be applicable to all Flask apps.