refactored names for docking
This commit is contained in:
parent
d20017680b
commit
8ec4944df4
|
@ -34,8 +34,8 @@
|
||||||
Dock and Report
|
Dock and Report
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
<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_manual') }}">Automatic</a>
|
||||||
<a class="dropdown-item" href="{{ url_for('dock_upload_single') }}">Manual</a>
|
<a class="dropdown-item" href="{{ url_for('dock_automatic') }}">Manual</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="{{ 'nav-item active' if active_page == 'generate' else 'nav-item' }}">
|
<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">
|
<div class="col-sm-6 col-md-3 item">
|
||||||
<h3>Features</h3>
|
<h3>Features</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{ url_for('dock_upload') }}">Dock (Manual)</a></li>
|
<li><a href="{{ url_for('dock_manual') }}">Dock (Manual)</a></li>
|
||||||
<li><a href="{{ url_for('dock_upload_single') }}">Dock (Automatic)</a></li>
|
<li><a href="{{ url_for('dock_automatic') }}">Dock (Automatic)</a></li>
|
||||||
<li><a href="{{ url_for('pubmed') }}">PubMed Search</a></li>
|
<li><a href="{{ url_for('pubmed') }}">PubMed Search</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% set active_page = "dock" %}
|
{% set active_page = "dock" %}
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<h2>Enter Your Configuration</h2>
|
<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' %}
|
{% include 'flash_messages.html' %}
|
||||||
{{ form.csrf_token }}
|
{{ form.csrf_token }}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
|
@ -2,7 +2,7 @@
|
||||||
{% set active_page = "dock" %}
|
{% set active_page = "dock" %}
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<h2>Enter Your Configuration</h2>
|
<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' %}
|
{% include 'flash_messages.html' %}
|
||||||
{{ form.csrf_token }}
|
{{ form.csrf_token }}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
|
@ -7,8 +7,8 @@
|
||||||
<p>The following are the currently active modules</p>
|
<p>The following are the currently active modules</p>
|
||||||
<h3>Docking</h3>
|
<h3>Docking</h3>
|
||||||
<ul>
|
<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_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_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_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>
|
</ul>
|
||||||
|
|
||||||
<h3>Drug Designing</h3>
|
<h3>Drug Designing</h3>
|
||||||
|
|
12
app/views.py
12
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)
|
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'])
|
@app.route('/Dock-Manual', methods=['GET', 'POST'])
|
||||||
def dock_upload():
|
def dock_manual():
|
||||||
form = curieForm()
|
form = curieForm()
|
||||||
|
|
||||||
if request.method == 'POST' and form.validate_on_submit():
|
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)
|
return render_template('display_result.html', filename="OwO", description=description,job=jobID)
|
||||||
|
|
||||||
flash_errors(form)
|
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'])
|
@app.route('/Dock-Automatic', methods=['GET', 'POST'])
|
||||||
def dock_upload_single():
|
def dock_automatic():
|
||||||
form = dockSingleForm()
|
form = dockSingleForm()
|
||||||
|
|
||||||
if request.method == 'POST' and form.validate_on_submit():
|
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)
|
return render_template('display_result.html', filename="OwO", description=description,job=jobID)
|
||||||
|
|
||||||
flash_errors(form)
|
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.
|
# The functions below should be applicable to all Flask apps.
|
||||||
|
|
Loading…
Reference in New Issue