+
@@ -123,26 +123,34 @@
console.time("Creating table");
$('#trait_table').DataTable( {
+ "createdRow": function ( row, data, index ) {
+ $('td', row).eq(8).attr('title', $('td', row).eq(8).text());
+ if ($('td', row).eq(8).text().length > 50) {
+ $('td', row).eq(8).text($('td', row).eq(8).text().substring(0, 50));
+ $('td', row).eq(8).text($('td', row).eq(8).text() + '...')
+ }
+ },
"paging": false,
"columns": [
{ "orderDataType": "dom-checkbox" },
- { "type": "natural" },
- { "type": "natural" },
- { "type": "natural", "width": "8%" },
- { "type": "natural" },
+ { "type": "natural", "width": "3%" },
+ { "type": "natural", "width": "6%" },
+ { "type": "natural", "width": "8%" },
{ "type": "natural" },
{ "type": "natural" },
{ "type": "natural" },
{ "type": "natural" },
- { "type": "natural", "width": "8%" },
{ "type": "natural" },
- { "type": "natural" },
- { "type": "natural", "width": "8%" },
- { "type": "natural" }
+ { "type": "natural", "width": "7%" },
+ { "type": "natural", "width": "4%" },
+ { "type": "natural", "width": "5%" },
+ { "type": "natural", "width": "7%" },
+ { "type": "natural", "width": "7%" }
],
"columnDefs": [
{
"targets": 0,
+ "orderable": false,
"orderDataType": "dom-checkbox"
}
],
diff --git a/wqflask/wqflask/templates/loading.html b/wqflask/wqflask/templates/loading.html
new file mode 100644
index 00000000..bc2627a0
--- /dev/null
+++ b/wqflask/wqflask/templates/loading.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+{% block title %}Loading Mapping Results{% endblock %}
+{% block content %}
+
+{% endblock %}
+{% block js %}
+
+{% endblock %}
\ No newline at end of file
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index f7b450c1..cafa8b93 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -3,6 +3,7 @@
{% block css %}
+
{% endblock %}
{% block content %}
@@ -125,9 +126,8 @@
-
-
-
+
+
+
+{% endblock %}
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 4f6725b3..4f46a904 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -50,6 +50,7 @@ from wqflask.correlation_matrix import show_corr_matrix
from wqflask.correlation import corr_scatter_plot
from wqflask.wgcna import wgcna_analysis
from wqflask.ctl import ctl_analysis
+from wqflask.submit_trait import get_species_groups
from utility import temp_data
from utility.tools import SQL_URI,TEMPDIR,USE_REDIS,USE_GN_SERVER,GN_SERVER_URL,GN_VERSION
@@ -294,6 +295,11 @@ def environments():
doc = docs.Docs("environments")
return render_template("docs.html", **doc.__dict__)
+@app.route("/submit_trait")
+def submit_trait():
+ species_and_groups = get_species_groups()
+ return render_template("submit_trait.html", **{'species_and_groups' : species_and_groups, 'gn_server_url' : GN_SERVER_URL, 'version' : GN_VERSION})
+
@app.route('/export_trait_excel', methods=('POST',))
def export_trait_excel():
"""Excel file consisting of the sample data from the trait data and analysis page"""
@@ -440,6 +446,57 @@ def heatmap_page():
def mapping_results_container_page():
return render_template("mapping_results_container.html")
+@app.route("/loading", methods=('POST',))
+def loading_page():
+ initial_start_vars = request.form
+ logger.debug("Marker regression called with initial_start_vars:", initial_start_vars.items())
+ temp_uuid = initial_start_vars['temp_uuid']
+ wanted = (
+ 'trait_id',
+ 'dataset',
+ 'method',
+ 'trimmed_markers',
+ 'selected_chr',
+ 'chromosomes',
+ 'mapping_scale',
+ 'score_type',
+ 'suggestive',
+ 'significant',
+ 'num_perm',
+ 'permCheck',
+ 'perm_output',
+ 'num_bootstrap',
+ 'bootCheck',
+ 'bootstrap_results',
+ 'LRSCheck',
+ 'maf',
+ 'manhattan_plot',
+ 'control_marker',
+ 'control_marker_db',
+ 'do_control',
+ 'genofile',
+ 'pair_scan',
+ 'startMb',
+ 'endMb',
+ 'graphWidth',
+ 'lrsMax',
+ 'additiveCheck',
+ 'showSNP',
+ 'showGenes',
+ 'viewLegend',
+ 'haplotypeAnalystCheck',
+ 'mapmethod_rqtl_geno',
+ 'mapmodel_rqtl_geno'
+ )
+ start_vars = {}
+ for key, value in initial_start_vars.iteritems():
+ if key in wanted or key.startswith(('value:')):
+ start_vars[key] = value
+
+ rendered_template = render_template("loading.html", **start_vars)
+
+ return rendered_template
+
@app.route("/marker_regression", methods=('POST',))
def marker_regression_page():
initial_start_vars = request.form
--
cgit v1.2.3