diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-17 00:01:58 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-17 00:01:58 +0530 |
commit | 8ec4944df451e39a289b8f679edc8a9096299c0f (patch) | |
tree | ac0f1b7fa83ab3f1af7d8e431bef9a84e8f491b6 | |
parent | d20017680bf6e8dfd2e4bcd69654a545f9a8350c (diff) |
refactored names for docking
-rw-r--r-- | app/templates/base.html | 8 | ||||
-rw-r--r-- | app/templates/dock_automatic.html (renamed from app/templates/dock_upload_single.html) | 2 | ||||
-rw-r--r-- | app/templates/dock_manual.html (renamed from app/templates/dock_upload.html) | 2 | ||||
-rw-r--r-- | app/templates/home.html | 4 | ||||
-rw-r--r-- | app/views.py | 12 |
5 files changed, 14 insertions, 14 deletions
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 </a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"> - <a class="dropdown-item" href="{{ url_for('dock_upload') }}">Automatic</a> - <a class="dropdown-item" href="{{ url_for('dock_upload_single') }}">Manual</a> + <a class="dropdown-item" href="{{ url_for('dock_manual') }}">Automatic</a> + <a class="dropdown-item" href="{{ url_for('dock_automatic') }}">Manual</a> </div> </li> <li class="{{ 'nav-item active' if active_page == 'generate' else 'nav-item' }}"> @@ -86,8 +86,8 @@ <div class="col-sm-6 col-md-3 item"> <h3>Features</h3> <ul> - <li><a href="{{ url_for('dock_upload') }}">Dock (Manual)</a></li> - <li><a href="{{ url_for('dock_upload_single') }}">Dock (Automatic)</a></li> + <li><a href="{{ url_for('dock_manual') }}">Dock (Manual)</a></li> + <li><a href="{{ url_for('dock_automatic') }}">Dock (Automatic)</a></li> <li><a href="{{ url_for('pubmed') }}">PubMed Search</a></li> </ul> </div> diff --git a/app/templates/dock_upload_single.html b/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 %} <h2>Enter Your Configuration</h2> - <form action="{{ url_for('dock_upload_single') }}" method="post" enctype="multipart/form-data"> + <form action="{{ url_for('dock_automatic') }}" method="post" enctype="multipart/form-data"> {% include 'flash_messages.html' %} {{ form.csrf_token }} <div class="form-group"> diff --git a/app/templates/dock_upload.html b/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 %} <h2>Enter Your Configuration</h2> - <form action="{{ url_for('dock_upload') }}" method="post" enctype="multipart/form-data"> + <form action="{{ url_for('dock_manual') }}" method="post" enctype="multipart/form-data"> {% include 'flash_messages.html' %} {{ form.csrf_token }} <div class="form-group"> 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 @@ <p>The following are the currently active modules</p> <h3>Docking</h3> <ul> - <li><a href="{{ url_for('dock_upload') }}">Dock and Report (Manual)</a> - 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) </li> - <li><a href="{{ url_for('dock_upload_single') }}">Dock and Report (Automatic)</a> - 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</li> + <li><a href="{{ url_for('dock_manual') }}">Dock and Report (Manual)</a> - 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) </li> + <li><a href="{{ url_for('dock_automatic') }}">Dock and Report (Automatic)</a> - 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</li> </ul> <h3>Drug Designing</h3> 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. |