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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 335e59756610dbf42e458acae01444e5c4931db68cfa167348ea9b746fafa258
4
- data.tar.gz: 6463d4162b3e4475faa71065085f98b9dc9fb47a301d24c40fedecea7e3d4638
3
+ metadata.gz: 6df67db57034d12544ba8d833539ba3b193322b307f394b4e22f1110daa1a2da
4
+ data.tar.gz: cc26578078bddb08c9eec2dcfbf4bf52688a25871f6e7e02c1ba83068a23ede3
5
5
  SHA512:
6
- metadata.gz: 4b99f80233d2ae778d279ea4af7cf2c9415ecc1710581eb3583e66b821e34196e7f5ed02095dea81f1836cac75cc651547922a2eb491e44e7d243268e793eda6
7
- data.tar.gz: c17e9cd599202ff003872dd5c02ba55f23b1fa48b77a0f08feeb1110d99fa82279701593c5a63f1c17f1bb36394c3ecc2ca6ed7e22d33725dc819906ebdd3b9c
6
+ metadata.gz: d51a7e34edcbd1898ecc04aea4768d6b3a7376a2c032e373010474d3e3d79a8bf90138aa6d52b1b6478e651a4b0abf6cc57ec0ba8133d983b22c4e9faeb778b2
7
+ data.tar.gz: 8ac6ca88671374c76e57ab9e0b72318f1c42d45ce4bcb324b5be61dbeb5a70bc3d33a921a86eb3e8aa38b5e8d1b1182bc6937041ed6e9b91c13d75054b5702d6
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2
@@ -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
- 'Yannick Wurm']
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
 
@@ -211,7 +211,7 @@ module GeneValidatorApp
211
211
 
212
212
  def parse_output_json
213
213
  json_contents = File.read(output_json_file_path)
214
- JSON.parse(json_contents)
214
+ JSON.parse(json_contents,symbolize_names: true)
215
215
  end
216
216
 
217
217
  def output_json_file_path
@@ -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
- @json_results = @gv_results[:parsed_json]
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]
@@ -1,3 +1,3 @@
1
1
  module GeneValidatorApp
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
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
- - @json_results[0]['validations'].each do |_short_header, item|
22
- th.sorter-false
23
- b= item['header']
24
- | &nbsp;
25
- - if item['header'] == "Length Cluster" || item['header'] == "Gene Merge" || item['header'] == "Main ORF" || item['header'] == "Missing/Extra Sequences"
26
- span data-placement="top" data-toggle="tooltip" title=("Charts available for this validation")
27
- i.fa.fa-bar-chart-o.chartIcon
28
- | &nbsp;
29
- span data-placement="top" data-toggle="tooltip" title="#{item['description']}"
30
- i.fa.fa-question-circle
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
- - @json_results.each do |query|
37
- - json_file = "/GeneValidator/#{@gv_results[:unique_id]}/output/html_files/json/input_file_#{query['idx']}.json"
38
- tr data-jsonfile="#{uri(json_file)}" data-target="toggle#{query['idx']}"
39
- td title="idx" = query['idx']
40
- td data-score="#{query['overall_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:#{query['overall_score']}%;")
44
- td title="Definition" = query['definition']
45
- td title=("No. Hits") = query['no_hits']
46
- - query['validations'].each do |_short_header, item|
47
- td class="#{item['status']}" title="#{item['header']}"
48
- == item['print'].gsub(/\s/, '&nbsp;').gsub(';&nbsp;', '; ')
49
- - if query['validations'].select{|_short_header, item| item['graphs'] != nil}.map{|_short_header, item| item['graphs'].length}.inject(0){|r, e| r+e } != 0
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(' ', '&nbsp;').gsub(';&nbsp;', '; ')
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.0
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