npsearch 2.1.1 → 2.1.2

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: 0e02888758654087d6af73b5fc87bba5363a0b4c
4
- data.tar.gz: 2fd35312b2b18d3dfefe99686397dfd6bd7d5cfb
3
+ metadata.gz: 036557512365e70a5fcc7cb9ca30134db25bfc70
4
+ data.tar.gz: af59a6031d843d7244820d1a7be721db542e6617
5
5
  SHA512:
6
- metadata.gz: 3683325fc2081158d10ab07164e19d8dff0fb16d1031b592c9fdbd6221f13b1877f5f959d78d06acb6978cb351f1e5f96a3d53a9758af16f1f4d6c04a283019c
7
- data.tar.gz: c9581cbd2ec7b00b22931fc0957e69bdb8cb525981e106ab759ee876e0c9de673d89bcc1156f5792871ec9c0c13357ac8a7ef0a68326c221d7e9873d5608f4fd
6
+ metadata.gz: 372005332db090e60d2012a7ffda5c0fea85143185a0fcdc47a1f7a52bc7dafdde7dc3555fc309a48dbdb7e969d3af95f99ba3c9506f565ad760c08418c40b16
7
+ data.tar.gz: 13b0ff78295b3b12400883f84e9119ce867474b76dabd8b7d57820a2d594e5ece81c6555c23c568aebb418021bcd1e1317f9ef449af3e8b5e74193d53ad89857
data/.gitignore CHANGED
@@ -16,4 +16,6 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  coverage
19
- .temp
19
+ .temp
20
+ exemplar_data/genetic_data.fa.npsearch.fa
21
+ exemplar_data/genetic_data.fa.npsearch.html
@@ -29,9 +29,15 @@ module NpSearch
29
29
  " -f short -U 0.34 -u 0.34"
30
30
  stdin, stdout, stderr, wait_thr = Open3.popen3(cmd)
31
31
  out = stdout.gets(nil).split("\n").delete_if { |l| l[0] == '#' }
32
+ if out.nil? || out.empty?
33
+ print stdout
34
+ print stderr
35
+ raise ArgumentError, 'Signalp failed to run sucessfully :('
36
+ else
37
+ result = out[0] + ' ' + seq
38
+ return Hash[sp_headers.map(&:to_sym).zip(result.split)]
39
+ end
32
40
  stdin.close; stdout.close; stderr.close
33
- result = out[0] + ' ' + seq
34
- return Hash[sp_headers.map(&:to_sym).zip(result.split)]
35
41
  end
36
42
  rescue Timeout::Error
37
43
  no_results = [0,0,1,1,1,1,1,1,1,'N',1,1, seq]
@@ -1,4 +1,4 @@
1
1
  # Top level module / namespace.
2
2
  module NpSearch
3
- VERSION = '2.1.1'.freeze
3
+ VERSION = '2.1.2'.freeze
4
4
  end
data/npsearch.gemspec CHANGED
@@ -6,9 +6,8 @@ require 'npsearch/version'
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'npsearch'
8
8
  s.version = NpSearch::VERSION
9
- s.authors = ['Ismail Moghul', 'Matthew Rowe', 'Anurag Priyam',
10
- 'Maurice Elphick', 'Yannick Wurm']
11
- s.email = ['y.wurm@qmul.ac.uk']
9
+ s.authors = ['Moghul et al.']
10
+ s.email = ['ismail.moghul@gmail.com']
12
11
  s.description = 'Search for Neuropeptides based solely on the common' \
13
12
  ' neuropeptide markers (e.g. signal peptide, dibasic' \
14
13
  ' cleavage sites etc.) i.e. not based on homology to' \
metadata CHANGED
@@ -1,18 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: npsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
- - Ismail Moghul
8
- - Matthew Rowe
9
- - Anurag Priyam
10
- - Maurice Elphick
11
- - Yannick Wurm
7
+ - Moghul et al.
12
8
  autorequire:
13
9
  bindir: bin
14
10
  cert_chain: []
15
- date: 2016-11-11 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
16
12
  dependencies:
17
13
  - !ruby/object:Gem::Dependency
18
14
  name: bundler
@@ -103,7 +99,7 @@ description: |-
103
99
 
104
100
  For more information: https://github.com/wurmlab/npsearch
105
101
  email:
106
- - y.wurm@qmul.ac.uk
102
+ - ismail.moghul@gmail.com
107
103
  executables:
108
104
  - npsearch
109
105
  extensions: []