From 32a931726dd63b3195650fdffbbd014f6e7b4907 Mon Sep 17 00:00:00 2001 From: Marek Schwarz Date: Thu, 29 Aug 2019 14:57:21 +0200 Subject: [PATCH] patch for new version of NCBI Seqviewer --- rna_blast_analyze/BR_core/output/base.html | 2 +- rna_blast_analyze/BR_core/output/htmloutput.py | 2 +- rna_blast_analyze/BR_core/output/onehit.html | 5 +++-- rna_blast_analyze/BR_core/output/script.js | 4 +--- rna_blast_analyze/VERSION | 2 +- test_func/test_data/RF00001_reference_missing_hit.html.md5 | 2 +- test_func/test_data/RF00001_reference_output.html.md5 | 2 +- 7 files changed, 9 insertions(+), 10 deletions(-) diff --git a/rna_blast_analyze/BR_core/output/base.html b/rna_blast_analyze/BR_core/output/base.html index 8d47bb1..176e254 100644 --- a/rna_blast_analyze/BR_core/output/base.html +++ b/rna_blast_analyze/BR_core/output/base.html @@ -2,7 +2,7 @@ - RNA BLAST Analyze + rboAnalyzer {% include 'style.css' %} {% include 'script.js' %} diff --git a/rna_blast_analyze/BR_core/output/htmloutput.py b/rna_blast_analyze/BR_core/output/htmloutput.py index 35df043..9e2ece5 100644 --- a/rna_blast_analyze/BR_core/output/htmloutput.py +++ b/rna_blast_analyze/BR_core/output/htmloutput.py @@ -110,7 +110,7 @@ def _prepare_body(data): lx = len(data.query.seq) seqview = [ - '?embeded=true', + 'embedded=true', '&noviewheader=true', '&id={}'.format(onehit.source.annotations['blast'][0]), '&appname=rboAnalyzer', diff --git a/rna_blast_analyze/BR_core/output/onehit.html b/rna_blast_analyze/BR_core/output/onehit.html index 0f4f54d..3c982fd 100644 --- a/rna_blast_analyze/BR_core/output/onehit.html +++ b/rna_blast_analyze/BR_core/output/onehit.html @@ -132,11 +132,12 @@

{% endif %} {% if show_gene_browser %} -
+
+ {% else %} + link to genome {% endif %} - link to genome {% if len(data.msgs) != 0 %}

diff --git a/rna_blast_analyze/BR_core/output/script.js b/rna_blast_analyze/BR_core/output/script.js index 0a67362..12e5d49 100644 --- a/rna_blast_analyze/BR_core/output/script.js +++ b/rna_blast_analyze/BR_core/output/script.js @@ -160,7 +160,7 @@ function viewRegion(button) { var svapp = SeqView.App.findAppByDivId(parent.id); if (!svapp) svapp = new SeqView.App(parent.id); - svapp.load(parent.dataset.sv_params); + svapp.reload(parent.dataset.sv_params); } function viewRegionCallback(button) { @@ -210,6 +210,4 @@ function viewAllRegions() { viewRegionCallback(rem_sv_btns[i]); } } - -console.log("script loaded correctly"); diff --git a/rna_blast_analyze/VERSION b/rna_blast_analyze/VERSION index 6c6aa7c..6da28dd 100644 --- a/rna_blast_analyze/VERSION +++ b/rna_blast_analyze/VERSION @@ -1 +1 @@ -0.1.0 \ No newline at end of file +0.1.1 \ No newline at end of file diff --git a/test_func/test_data/RF00001_reference_missing_hit.html.md5 b/test_func/test_data/RF00001_reference_missing_hit.html.md5 index a7f09be..c249e55 100644 --- a/test_func/test_data/RF00001_reference_missing_hit.html.md5 +++ b/test_func/test_data/RF00001_reference_missing_hit.html.md5 @@ -1 +1 @@ -6006734df44d7ce997ec341c4f21070a \ No newline at end of file +c9ea04bf0a115e466cb603b19c414050 \ No newline at end of file diff --git a/test_func/test_data/RF00001_reference_output.html.md5 b/test_func/test_data/RF00001_reference_output.html.md5 index 95a4cb0..b350016 100644 --- a/test_func/test_data/RF00001_reference_output.html.md5 +++ b/test_func/test_data/RF00001_reference_output.html.md5 @@ -1 +1 @@ -13cb678adfab51b4fa9880985014b5e0 \ No newline at end of file +cf7bd96127e4a0e0481956a0bb2afe8c \ No newline at end of file