genevalidatorapp 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/genevalidatorapp.gemspec +1 -2
- data/lib/genevalidatorapp/genevalidator.rb +1 -1
- data/lib/genevalidatorapp/routes.rb +1 -1
- data/lib/genevalidatorapp/version.rb +1 -1
- data/views/results.slim +41 -26
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6df67db57034d12544ba8d833539ba3b193322b307f394b4e22f1110daa1a2da
|
4
|
+
data.tar.gz: cc26578078bddb08c9eec2dcfbf4bf52688a25871f6e7e02c1ba83068a23ede3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d51a7e34edcbd1898ecc04aea4768d6b3a7376a2c032e373010474d3e3d79a8bf90138aa6d52b1b6478e651a4b0abf6cc57ec0ba8133d983b22c4e9faeb778b2
|
7
|
+
data.tar.gz: 8ac6ca88671374c76e57ab9e0b72318f1c42d45ce4bcb324b5be61dbeb5a70bc3d33a921a86eb3e8aa38b5e8d1b1182bc6937041ed6e9b91c13d75054b5702d6
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2
|
data/genevalidatorapp.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.name = 'genevalidatorapp'
|
8
8
|
s.version = GeneValidatorApp::VERSION
|
9
9
|
s.authors = ['Monica Dragan', 'Ismail Moghul', 'Anurag Priyam',
|
10
|
-
|
10
|
+
'Yannick Wurm']
|
11
11
|
s.email = 'y.wurm@qmul.ac.uk'
|
12
12
|
s.summary = 'A Web App wrapper for GeneValidator.'
|
13
13
|
s.description = 'A Web App wrapper for GeneValidator, a program for' \
|
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.license = 'AGPL'
|
17
17
|
|
18
18
|
s.files = `git ls-files -z`.split("\x0")
|
19
|
-
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
19
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
21
20
|
s.require_paths = ['lib']
|
22
21
|
|
@@ -52,7 +52,7 @@ module GeneValidatorApp
|
|
52
52
|
cross_origin # Required for the API to work...
|
53
53
|
RunGeneValidator.init(request.url, params)
|
54
54
|
@gv_results = RunGeneValidator.run
|
55
|
-
@
|
55
|
+
@json_data_section = @gv_results[:parsed_json]
|
56
56
|
if @params[:results_url]
|
57
57
|
@gv_results[:results_url]
|
58
58
|
elsif @params[:json_url]
|
data/views/results.slim
CHANGED
@@ -1,7 +1,24 @@
|
|
1
1
|
h4 Overview
|
2
2
|
#overview.text-left
|
3
|
+
span
|
4
|
+
strong BLAST Database Used:
|
5
|
+
= @params[:database]
|
6
|
+
br
|
7
|
+
strong BLAST E-Value Used:
|
8
|
+
| 10<sup>-5</sup>
|
9
|
+
br
|
3
10
|
#overview_text
|
4
|
-
button#overview_btn.btn.btn-primary.btn-sm data-toggle="button" onclick="GV.toggleOverviewBtn();" data-overviewjson="/GeneValidator/#{@gv_results[:unique_id]}/output/html_files/json/overview.json"
|
11
|
+
button#overview_btn.btn.btn-primary.btn-sm style="margin-bottom:10px" data-toggle="button" onclick="GV.toggleOverviewBtn();" data-overviewjson="/GeneValidator/#{@gv_results[:unique_id]}/output/html_files/json/overview.json"
|
12
|
+
br
|
13
|
+
|
14
|
+
- output_dir = "/GeneValidator/#{@gv_results[:unique_id]}/output/"
|
15
|
+
- csv_file = File.join(output_dir, 'input_file_results.csv')
|
16
|
+
- json_file = File.join(output_dir, 'input_file_results.json')
|
17
|
+
- summary_file = File.join(output_dir, 'input_file_summary.csv')
|
18
|
+
a.btn.btn-primary.btn-sm target="_blank" download="" style="margin-right:10px;" href="#{uri(csv_file)}" CSV Output File
|
19
|
+
a.btn.btn-primary.btn-sm target="_blank" download="" style="margin-right:10px;" href="#{uri(json_file)}" JSON Output File
|
20
|
+
a.btn.btn-primary.btn-sm target="_blank" download="" style="margin-right:10px;" href="#{uri(summary_file)}" Summary CSV Output File
|
21
|
+
|
5
22
|
br/
|
6
23
|
hr/
|
7
24
|
h4#results_header Results
|
@@ -18,37 +35,35 @@ table#sortable_table.table.table-striped.table-collapsed.table-bordered.table-co
|
|
18
35
|
| No. Hits
|
19
36
|
span data-placement="top" data-toggle="tooltip" title=("Number of non-identical hits found by BLAST.")
|
20
37
|
i.fa.fa-question-circle
|
21
|
-
- @
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
- else
|
32
|
-
span data-placement="top" data-toggle="tooltip" title="#{item['description']}"
|
38
|
+
- @json_data_section[0][:validations].each do |_short_header, item|
|
39
|
+
th.sorter-false
|
40
|
+
strong
|
41
|
+
= item[:header]
|
42
|
+
|
|
43
|
+
- if item[:header] == "Length Cluster" || item[:header] == "Gene Merge" || item[:header] == "Main ORF" || item[:header] == "Missing/Extra Sequences"
|
44
|
+
span data-placement="top" data-toggle="tooltip" title=("Charts available for this validation")
|
45
|
+
i.fa.fa-bar-chart-o.chartIcon
|
46
|
+
|
|
47
|
+
span data-placement="top" data-toggle="tooltip" title="#{item[:description]}"
|
33
48
|
i.fa.fa-question-circle
|
34
49
|
th.sorter-false.chart-column
|
35
50
|
tbody
|
36
|
-
- @
|
37
|
-
- json_file = "/GeneValidator/#{@gv_results[:unique_id]}/output/html_files/json/input_file_#{
|
38
|
-
tr data-jsonfile="#{uri(json_file)}" data-target="toggle#{
|
39
|
-
td title="idx" =
|
40
|
-
td data-score="#{
|
51
|
+
- @json_data_section.each do |row|
|
52
|
+
- json_file = "/GeneValidator/#{@gv_results[:unique_id]}/output/html_files/json/input_file_#{row[:idx]}.json"
|
53
|
+
tr data-jsonfile="#{uri(json_file)}" data-target="toggle#{row[:idx]}"
|
54
|
+
td title="idx" = row[:idx]
|
55
|
+
td data-score="#{row[:overall_score]}"
|
41
56
|
.ratings
|
42
57
|
.empty-stars
|
43
|
-
.full-stars style=("width:#{
|
44
|
-
td title="Definition" =
|
45
|
-
td title=("No. Hits") =
|
46
|
-
-
|
47
|
-
td class="#{item[
|
48
|
-
== item[
|
49
|
-
- if
|
58
|
+
.full-stars style=("width:#{row[:overall_score]}%;")
|
59
|
+
td title="Definition" = row[:definition]
|
60
|
+
td title=("No. Hits") = row[:no_hits]
|
61
|
+
- row[:validations].each do |_short_header, item|
|
62
|
+
td class="#{item[:status]}" title="#{item[:header]}"
|
63
|
+
== item[:print].gsub(' ', ' ').gsub('; ', '; ')
|
64
|
+
- if row[:validations].select { |_short_header, item| item[:graphs] != nil }.map{ |_short_header, item| item[:graphs].length }.inject(0) { |r, e| r + e } != 0
|
50
65
|
td
|
51
66
|
button.plot_btn.btn.btn-default title=("Show plots")
|
52
67
|
i.fa.fa-bar-chart-o
|
53
68
|
- else
|
54
|
-
td
|
69
|
+
td
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: genevalidatorapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Monica Dragan
|
@@ -124,6 +124,7 @@ extensions: []
|
|
124
124
|
extra_rdoc_files: []
|
125
125
|
files:
|
126
126
|
- ".gitignore"
|
127
|
+
- ".ruby-version"
|
127
128
|
- ".travis.yml"
|
128
129
|
- Gemfile
|
129
130
|
- LICENSE.txt
|