npsearch 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/lib/npsearch/signalp.rb +8 -2
- data/lib/npsearch/version.rb +1 -1
- data/npsearch.gemspec +2 -3
- metadata +4 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 036557512365e70a5fcc7cb9ca30134db25bfc70
|
|
4
|
+
data.tar.gz: af59a6031d843d7244820d1a7be721db542e6617
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 372005332db090e60d2012a7ffda5c0fea85143185a0fcdc47a1f7a52bc7dafdde7dc3555fc309a48dbdb7e969d3af95f99ba3c9506f565ad760c08418c40b16
|
|
7
|
+
data.tar.gz: 13b0ff78295b3b12400883f84e9119ce867474b76dabd8b7d57820a2d594e5ece81c6555c23c568aebb418021bcd1e1317f9ef449af3e8b5e74193d53ad89857
|
data/.gitignore
CHANGED
data/lib/npsearch/signalp.rb
CHANGED
|
@@ -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]
|
data/lib/npsearch/version.rb
CHANGED
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 = ['
|
|
10
|
-
|
|
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.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
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
|
+
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
|
-
-
|
|
102
|
+
- ismail.moghul@gmail.com
|
|
107
103
|
executables:
|
|
108
104
|
- npsearch
|
|
109
105
|
extensions: []
|