genevalidator 1.6.6 → 1.6.8

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
  SHA1:
3
- metadata.gz: 226cca4c8766700b659ff1884a6b408530acded0
4
- data.tar.gz: 67b9714e84b33e691b49fe0bff4053842d8d2251
3
+ metadata.gz: f1fdf73a212a4034bf683739c5cd37912704aa6f
4
+ data.tar.gz: 3e14c4244654cbb5a33e74a73c03dd7939c32f81
5
5
  SHA512:
6
- metadata.gz: a273e0fbe5727fc629c26b568b1137b52381ce5e7ae61fee298ea480b6f0f331645f12ef3ad6e33b2da4e369004263f96304860f0524decb61d86f4c92e120bd
7
- data.tar.gz: e62f370f8f67878c72b8f5827c87913f6a675ee2f2988a3924eb7191fc5a0904a255c1c0335e0b701a027c5fd9c951f10a005a195e539c6954de93b69294f316
6
+ metadata.gz: 51973ebeb66f9db5eb25e9c68a55417cea83eac7524cf30c8f810a2fe47f0c30038d11150910661630c54158f994ebf2fb0ac04bc448b6f0dc52c574e9fae1d2
7
+ data.tar.gz: 167350002d32901144d799e713375d9fc008ea835748251372388170521cbea1bf29a8543475480709c116f781fb6934261be654c9ffd59506a814bcdb2fcff7
data/README.md CHANGED
@@ -14,7 +14,7 @@ If you would like to use GeneValidator on a few sequences, see our online [GeneV
14
14
 
15
15
 
16
16
  If you use GeneValidator in your work, please cite us as follows:
17
- > "Dragan M<sup>&Dagger;</sup>, Moghul MI<sup>&Dagger;</sup>, Priyam A, Bustos C & Wurm Y (<em>in prep.</em>) GeneValidator: identify problematic gene predictions"
17
+ > [Dragan M<sup>&Dagger;</sup>, Moghul MI<sup>&Dagger;</sup>, Priyam A, Bustos C & Wurm Y. 2016. GeneValidator: identify problems with protein-coding gene predictions. <em>Bioinformatics</em>, doi: 10.1093/bioinformatics/btw015](http://bioinformatics.oxfordjournals.org/content/early/2016/02/26/bioinformatics.btw015).
18
18
 
19
19
 
20
20
 
@@ -5,4 +5,4 @@
5
5
  <% output_files.each_with_index do |results_html, idx| %>
6
6
  <li><a href="<%=results_html%>"><%= idx + 1 %></a></li>
7
7
  <% end %></ul></nav><%end%>
8
- <footer><div class="container center-block"><p class="text-muted text-center">Please cite: "Dragan M<sup>&Dagger;</sup>, Moghul MI<sup>&Dagger;</sup>, Priyam A, Bustos C &amp; Wurm Y <em>(in prep)</em> GeneValidator: identify problematic gene predictions"<br/> Developed at <a href="https://wurmlab.github.io" target="_blank">Wurm Lab</a>, <a href="http://www.sbcs.qmul.ac.uk" target="_blank">QMUL</a> with funding by <a href="http://www.bbsrc.ac.uk/home/home.aspx" target="_blank">BBSRC</a> and <a href="https://www.google-melange.com/gsoc/homepage/google/gsoc2013" target="_blank">Google Summer of Code 2013</a><br/>This page was created by <a href="https://github.com/wurmlab/genevalidator" target="_blank" >GeneValidator</a> v<%= GeneValidator::VERSION %></p></div></footer></body></html>
8
+ <footer><div class="container center-block"><p class="text-muted text-center">Please cite:<a href="http://bioinformatics.oxfordjournals.org/content/early/2016/02/26/bioinformatics.btw015"> "Dragan M<sup>&Dagger;</sup>, Moghul MI<sup>&Dagger;</sup>, Priyam A, Bustos C &amp; Wurm Y <em>(2016)</em> GeneValidator: identify problematic gene predictions"</a><br/> Developed at <a href="https://wurmlab.github.io" target="_blank">Wurm Lab</a>, <a href="http://www.sbcs.qmul.ac.uk" target="_blank">QMUL</a> with funding by <a href="http://www.bbsrc.ac.uk/home/home.aspx" target="_blank">BBSRC</a> and <a href="https://www.google-melange.com/gsoc/homepage/google/gsoc2013" target="_blank">Google Summer of Code 2013</a><br/>This page was created by <a href="https://github.com/wurmlab/genevalidator" target="_blank" >GeneValidator</a> v<%= GeneValidator::VERSION %></p></div></footer></body></html>
@@ -5,4 +5,4 @@
5
5
  <% output_files.each_with_index do |results_html, idx| %>
6
6
  <li><a href="<%=results_html%>"><%= idx + 1 %></a></li>
7
7
  <% end %></ul></nav><%end%>
8
- <footer><div class="container center-block"><p class="text-muted text-center">Please cite: "Dragan M<sup>&Dagger;</sup>, Moghul MI<sup>&Dagger;</sup>, Priyam A, Bustos C &amp; Wurm Y <em>(in prep)</em> GeneValidator: identify problematic gene predictions"<br/> Developed at <a href="https://wurmlab.github.io" target="_blank">Wurm Lab</a>, <a href="http://www.sbcs.qmul.ac.uk" target="_blank">QMUL</a> with funding by <a href="http://www.bbsrc.ac.uk/home/home.aspx" target="_blank">BBSRC</a> and <a href="https://www.google-melange.com/gsoc/homepage/google/gsoc2013" target="_blank">Google Summer of Code 2013</a><br/>This page was created by <a href="https://github.com/wurmlab/genevalidator" target="_blank" >GeneValidator</a> v<%= GeneValidator::VERSION %></p></div></footer></body></html>
8
+ <footer><div class="container center-block"><p class="text-muted text-center">Please cite:<a href="http://bioinformatics.oxfordjournals.org/content/early/2016/02/26/bioinformatics.btw015"> "Dragan M<sup>&Dagger;</sup>, Moghul MI<sup>&Dagger;</sup>, Priyam A, Bustos C &amp; Wurm Y <em>(2016)</em> GeneValidator: identify problematic gene predictions"</a><br/> Developed at <a href="https://wurmlab.github.io" target="_blank">Wurm Lab</a>, <a href="http://www.sbcs.qmul.ac.uk" target="_blank">QMUL</a> with funding by <a href="http://www.bbsrc.ac.uk/home/home.aspx" target="_blank">BBSRC</a> and <a href="https://www.google-melange.com/gsoc/homepage/google/gsoc2013" target="_blank">Google Summer of Code 2013</a><br/>This page was created by <a href="https://github.com/wurmlab/genevalidator" target="_blank" >GeneValidator</a> v<%= GeneValidator::VERSION %></p></div></footer></body></html>
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'optparse'
3
+ require 'english'
3
4
 
4
5
  require 'genevalidator'
5
6
  require 'genevalidator/get_raw_sequences'
@@ -116,7 +117,7 @@ begin
116
117
  exit 1
117
118
  end
118
119
  rescue OptionParser::ParseError
119
- $stderr.print 'Error: ' + $ERROR_INFO.to_s + '\n'
120
+ $stderr.print 'Error: ' + $ERROR_INFO.to_s + "\n"
120
121
  exit 1
121
122
  end
122
123
 
@@ -121,14 +121,13 @@ module GeneValidator
121
121
  current_hsp.query_reading_frame = hsp.query_frame.to_i
122
122
 
123
123
  current_hsp.hit_alignment = hsp.hseq.to_s
124
- if guess_sequence_type(current_hsp.hit_alignment) != :protein
125
- fail SequenceTypeError
126
- end
124
+ seq_type = guess_sequence_type(current_hsp.hit_alignment)
125
+ fail SequenceTypeError unless seq_type == :protein || seq_type.nil?
127
126
 
128
127
  current_hsp.query_alignment = hsp.qseq.to_s
129
- if guess_sequence_type(current_hsp.query_alignment) != :protein
130
- fail SequenceTypeError
131
- end
128
+ seq_type = guess_sequence_type(current_hsp.query_alignment)
129
+ fail SequenceTypeError unless seq_type == :protein || seq_type.nil?
130
+
132
131
  current_hsp.align_len = hsp.align_len.to_i
133
132
  current_hsp.identity = hsp.identity.to_i
134
133
  current_hsp.pidentity = (100 * hsp.identity / hsp.align_len.to_f)
@@ -1,3 +1,3 @@
1
1
  module GeneValidator
2
- VERSION = '1.6.6'
2
+ VERSION = '1.6.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genevalidator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Monica Dragan
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-10-06 00:00:00.000000000 Z
14
+ date: 2016-03-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler