RAPPEL : Opération de maintenance > ForgeMIA indisponible le 20 Janvier entre 7h et 12h

Commit 039fcf4c authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Update home page

parent 926571ff
......@@ -24,7 +24,7 @@ def launch():
UPLOAD_FOLDER = config_reader.upload_folder
APP_DATA = config_reader.app_data
app_title = "D-GENIES - Dotplot for Genomes Interactive, E-connected and Speedy"
app_title = "D-GENIES - Dotplot large Genomes in an Interactive, Efficient and Simple way"
# Init Flask:
app = Flask(__name__, static_url_path='/static')
......
......@@ -3,7 +3,7 @@
<!-- Jumbotron -->
<div class="jumbotron" style="margin-top:-25px;text-align:justify">
<h1>D-Genies</h1>
<p class="description lead">D-GENIES &#150; for Dotplot for Genomes Interactive, E-connected and Speedy &#150; is an online tool
<p class="description lead">D-GENIES &#150; for <strong>D</strong>otplot large <strong>Gen</strong>omes in an <strong>I</strong>nteractive, <strong>E</strong>fficient and <strong>S</strong>imple way &#150; is an online tool
designed to compare two genomes. It supports large genome and you can interact with the dot plot to improve the visualisation.</p>
<p class="description">We use minimap version 2 to align the two genomes. Then, the PAF file is parsed and plotted into
an interactive plot written with d3.js library.</p>
......@@ -13,13 +13,18 @@
<div class="col-lg-6" style="text-align:justify">
<h1 class="page-header">D-Genies <small>Summary</small></h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tristique diam eu dolor viverra, aliquam malesuada ante dapibus. Fusce aliquet commodo justo, eu tristique tellus. Fusce sapien ligula, rutrum a luctus et, condimentum a leo. Donec at metus urna. Vivamus lacus ante, fringilla sed bibendum sed, faucibus vel diam. Aliquam erat volutpat. Etiam eu ante id odio interdum lacinia id id nisi. Duis placerat pharetra nulla at cursus.</p>
</div>
<div class="col-lg-6" style="text-align:justify">
<p>Dot plots are widely used to quickly compare sequence sets. They provide a synthetic similarity overview, highlighting repetitions, breaks and inversions. Different tools have been developed to easily generated genomic alignment dot plots, but they are often limited in the input sequence size. D-GENIES is a standalone and WEB application performing large genome alignments using minimap2 software package and generating interactive dot plots. It enables users to sort query sequences along the reference , zoom in the plot and download several image, alignment or sequence files. D-GENIES is an easy to install open source software package (GPL) developed in Python and JavaScript.</p>
<h1 class="page-header">D-Genies <small>Availability</small></h1>
<p>D-Genies is available under the GNU General
Public License (GPL). The package is coming with full documentation and test data. Sources are available <a target="_blank" href="#">here</a>.</p>
</div><!--/span-->
<div class="col-lg-6" style="text-align:justify">
{% if pict is not none %}
<img src="/gallery/{{ pict }}" alt="example" width="500" height="500" />
{% endif %}
</div>
</div><!--/row-->
{% endblock %}
\ No newline at end of file
......@@ -13,7 +13,7 @@ from dgenies.lib.job_manager import JobManager
from dgenies.lib.functions import Functions, ALLOWED_EXTENSIONS
from dgenies.lib.upload_file import UploadFile
from dgenies.lib.fasta import Fasta
from dgenies.database import Session
from dgenies.database import Session, Gallery
from peewee import DoesNotExist
......@@ -26,7 +26,12 @@ def get_launched_results():
# Main
@app.route("/", methods=['GET'])
def main():
return render_template("index.html", title=app_title, menu="index")
pict = Gallery.select().order_by("id")
if len(pict) > 0:
pict = pict[0].picture
else:
pict = None
return render_template("index.html", title=app_title, menu="index", pict=pict)
@app.route("/run", methods=['GET'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment