unipept 0.3.3 → 0.3.4
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/VERSION +1 -1
- data/bin/uniprot +14 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8b67a44cab159e17675e6cab96d9fb04e458dc3
|
4
|
+
data.tar.gz: 515cd4c0592854704f26a410fe8d024aa411d56c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb5a84db577d804aac0d969a90307f4d6f30761a6ddd44489db34aa8b9f0280366cce5ba2672a59cfe7770709396899d8e95cd4866cb32f8a01e5d62be65cbc3
|
7
|
+
data.tar.gz: b5a17c748755f7dfba4e8598290818e1ac2bf9d6dcdd6d32cd2df363635fe7b1be3911a90e1a476e97ae002a303e1ec06abe2b81eb362e517b50a4460e7a1bd0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
data/bin/uniprot
CHANGED
@@ -1,10 +1,23 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'faraday'
|
3
|
+
require 'cri'
|
4
|
+
|
3
5
|
Signal.trap("PIPE", "EXIT")
|
4
6
|
Signal.trap("INT", "EXIT")
|
5
|
-
|
7
|
+
|
8
|
+
def get_uniprot_entry(arg)
|
6
9
|
resp = Faraday.get("http://www.uniprot.org/uniprot/#{arg}.fasta")
|
7
10
|
if resp.success?
|
8
11
|
puts resp.body.lines.map(&:chomp)[1..-1].join("")
|
9
12
|
end
|
10
13
|
end
|
14
|
+
|
15
|
+
if ARGV.empty?
|
16
|
+
STDIN.each_line do |pept|
|
17
|
+
get_uniprot_entry(pept.chomp)
|
18
|
+
end
|
19
|
+
else
|
20
|
+
ARGV.each do |pept|
|
21
|
+
get_uniprot_entry(pept)
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unipept
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toon Willems
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|