From eae45e315779220eb31dec4496beb7679ec011de Mon Sep 17 00:00:00 2001 From: az7jh2 <50506882+az7jh2@users.noreply.github.com> Date: Mon, 14 Dec 2020 16:16:19 -0500 Subject: [PATCH] Website Update 1. Add 2nd backup infos 2. Now in the download CSV files, the IDs and Names for genes and transcripts are separated (for both search page and evidence page) 3. Add buttons for linking to ShinyGO and GENEONTOLOGY --- static/my.js | 174 +++++++++++++++++++++++++++++-- static/pic_manual/TableTools.png | Bin 183369 -> 203135 bytes tRFapp.py | 153 ++++++++++++++++++++------- templates/evidence.html | 31 ++++++ templates/manual.html | 8 +- templates/search.html | 30 +++++- 6 files changed, 344 insertions(+), 52 deletions(-) diff --git a/static/my.js b/static/my.js index 021c500..ea99c4e 100644 --- a/static/my.js +++ b/static/my.js @@ -319,7 +319,13 @@ $(document).ready(function() { { className: "dt-head-center", targets: [0,1,2,3,4,5,6,7,8,9] - } + }, + // hidden columns for downloading + { + targets: [10,11,12,13], + visible: false, + searchable: false + }, ], dom: "<'row'<'col-md-3'i><'col-md-5'p><'col-md-3'f><'col-md-1'B>>" + "<'row'<'col-md-12'tr>>", @@ -329,10 +335,12 @@ $(document).ready(function() { text: 'Export', exportOptions: { // keep newline stripNewlines: false, - trim: false + trim: false, + columns: [0,10,11,12,13,3,4,5,6,7,8,9] } } - ] + ], + processing: true } ); } ); @@ -347,7 +355,13 @@ $(document).ready(function() { { className: "dt-head-center", targets: [0,1,2,3,4,5,6] - } + }, + // hidden columns for downloading + { + targets: [7,8,9,10], + visible: false, + searchable: false + }, ], dom: "<'row'<'col-md-3'i><'col-md-5'p><'col-md-3'f><'col-md-1'B>>" + "<'row'<'col-md-12'tr>>", @@ -357,7 +371,8 @@ $(document).ready(function() { text: 'Export', exportOptions: { // keep newline stripNewlines: false, - trim: false + trim: false, + columns: [0,1,7,8,9,10,4,5,6] } } ] @@ -418,7 +433,8 @@ $('#pathway').click(function () { // sorting will change the order of rows you get, but it does not matter // 3rd column: gene with href link, need parse - var gene = table.column(2).data() + // update: hidden column 12 gene ID; 13 gene symbol + var gene = table.column(12).data() // 5th column: free energy var mfe = table.column(4).data() // 7th column: matching length @@ -428,14 +444,14 @@ $('#pathway').click(function () { // extract ensembl ID from links var len = gene.length - var pattern = />([a-zA-Z0-9_.]*?)
([a-zA-Z0-9_.]*?)
' and '