unipept 0.5.5 → 0.5.6

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: 57edfe9cecc9210f07d56d90270b5b183be59528
4
- data.tar.gz: 77fdf1c31d3528fd60ce858ece781907e5c7060e
3
+ metadata.gz: a5ef6c84a4836b7b55f5aedadcf694470c89608f
4
+ data.tar.gz: 804ec2db29552953e0769ee1ef6df9e005828b8c
5
5
  SHA512:
6
- metadata.gz: 8887fae3e63d7f9cd1a5fdd3745b1a5c22b84c2693fcf91505e0aa716dd17161f1e05726177f6ac0539473fbb33b3d7c1280fe3d2c1912cff96f08cdebd8cc41
7
- data.tar.gz: 45b5d0bc4f14f052f1816f7239d49fa3f9486279913b7cb0af745a339d93787e9c540ade807f22e262894b4b66208634a4ddd6225e71f8a5c4ff95afa94a81ee
6
+ metadata.gz: 2377ac480f2dedccb03bb6bc537a07a613e3ddd6b2b7ca59eda6fa25b0831488628fa0598ae28f2efc7d23afbf8a22b9364c0c31bea3b3b7e57fca31f635db2c
7
+ data.tar.gz: 7fe190b65377892f52117049a16c390415e6aea6bb9c55e283f5dc29bdd1db02fefa21d81728cd90aaab713e1b1f1a9dfc56c3efbf3bedf772f619e47a6b1f5b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.5
1
+ 0.5.6
@@ -182,7 +182,7 @@ module Unipept
182
182
  end
183
183
 
184
184
  def peptide_iterator(peptides, &block)
185
- first = peptides.next
185
+ first = peptides.next rescue return
186
186
  if first.start_with? '>'
187
187
  # FASTA MODE ENGAGED
188
188
  fasta_header = first.chomp
@@ -25,7 +25,7 @@ module Unipept
25
25
  'csv'
26
26
  end
27
27
 
28
- def header(sample_data)
28
+ def header(sample_data, fasta_mapper = nil)
29
29
  ""
30
30
  end
31
31
 
@@ -39,7 +39,8 @@ module Unipept
39
39
  require 'json'
40
40
  register :json
41
41
 
42
- def format(data)
42
+ def format(data, fasta_mapper = nil)
43
+ # TODO: add fasta header based on fasta_mapper information
43
44
  data.to_json
44
45
  end
45
46
 
@@ -60,7 +61,6 @@ module Unipept
60
61
  else
61
62
  csv << first.keys.map(&:to_s) if first
62
63
  end
63
-
64
64
  end
65
65
  end
66
66
 
@@ -100,13 +100,13 @@ module Unipept
100
100
  end
101
101
 
102
102
  class ::Array
103
- def to_xml( array_name = :array, item_name = :item )
104
- %|<#{array_name} size="#{self.size}">|+map{|n|n.to_xml( :item )}.join+"</#{array_name}>"
103
+ def to_xml(array_name = :array, item_name = :item)
104
+ %|<#{array_name} size="#{self.size}">| + self.map{|n|n.to_xml( :item )}.join+"</#{array_name}>"
105
105
  end
106
106
  end
107
107
 
108
108
  class ::Hash
109
- def to_xml( name = nil )
109
+ def to_xml(name = nil)
110
110
  data = to_a.map{|k,v|v.to_xml(k)}.join
111
111
  name ? "<#{name}>#{data}</#{name}>" : data
112
112
  end
@@ -114,7 +114,8 @@ module Unipept
114
114
 
115
115
  register :xml
116
116
 
117
- def format(data)
117
+ def format(data, fasta_mapper = nil)
118
+ # TODO: add fasta header based on fasta_mapper information
118
119
  data.to_xml
119
120
  end
120
121
 
data/unipept.gemspec ADDED
@@ -0,0 +1,78 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: unipept 0.5.6 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "unipept"
9
+ s.version = "0.5.6"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Toon Willems"]
14
+ s.date = "2014-06-25"
15
+ s.description = "CLI interface to unipept"
16
+ s.email = "willemstoon@gmail.com"
17
+ s.executables = ["unipept", "prot2pept", "peptfilter", "uniprot"]
18
+ s.extra_rdoc_files = [
19
+ "LICENSE.txt",
20
+ "README.rdoc"
21
+ ]
22
+ s.files = [
23
+ ".document",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "bin/peptfilter",
31
+ "bin/prot2pept",
32
+ "bin/unipept",
33
+ "bin/uniprot",
34
+ "lib/unipept.rb",
35
+ "lib/unipept/api_runner.rb",
36
+ "lib/unipept/batch_order.rb",
37
+ "lib/unipept/configuration.rb",
38
+ "lib/unipept/formatters.rb",
39
+ "test/helper.rb",
40
+ "test/test_unipept.rb",
41
+ "unipept.gemspec"
42
+ ]
43
+ s.homepage = "http://github.ugent.be/bmesuere/unipept/"
44
+ s.licenses = ["MIT"]
45
+ s.rubygems_version = "2.2.2"
46
+ s.summary = "CLI interface to unipept"
47
+
48
+ if s.respond_to? :specification_version then
49
+ s.specification_version = 4
50
+
51
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
+ s.add_development_dependency(%q<shoulda>, ["~> 3.5"])
53
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
54
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
55
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
56
+ s.add_development_dependency(%q<simplecov>, ["~> 0.8"])
57
+ s.add_runtime_dependency(%q<typhoeus>, ["~> 0.6"])
58
+ s.add_runtime_dependency(%q<cri>, ["~> 2.6"])
59
+ else
60
+ s.add_dependency(%q<shoulda>, ["~> 3.5"])
61
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
62
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
63
+ s.add_dependency(%q<jeweler>, ["~> 2.0"])
64
+ s.add_dependency(%q<simplecov>, ["~> 0.8"])
65
+ s.add_dependency(%q<typhoeus>, ["~> 0.6"])
66
+ s.add_dependency(%q<cri>, ["~> 2.6"])
67
+ end
68
+ else
69
+ s.add_dependency(%q<shoulda>, ["~> 3.5"])
70
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
71
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
72
+ s.add_dependency(%q<jeweler>, ["~> 2.0"])
73
+ s.add_dependency(%q<simplecov>, ["~> 0.8"])
74
+ s.add_dependency(%q<typhoeus>, ["~> 0.6"])
75
+ s.add_dependency(%q<cri>, ["~> 2.6"])
76
+ end
77
+ end
78
+
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.5.5
4
+ version: 0.5.6
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-24 00:00:00.000000000 Z
11
+ date: 2014-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda
@@ -116,10 +116,11 @@ executables:
116
116
  - peptfilter
117
117
  - uniprot
118
118
  extensions: []
119
- extra_rdoc_files: []
119
+ extra_rdoc_files:
120
+ - LICENSE.txt
121
+ - README.rdoc
120
122
  files:
121
123
  - ".document"
122
- - ".gitignore"
123
124
  - Gemfile
124
125
  - Gemfile.lock
125
126
  - LICENSE.txt
@@ -137,6 +138,7 @@ files:
137
138
  - lib/unipept/formatters.rb
138
139
  - test/helper.rb
139
140
  - test/test_unipept.rb
141
+ - unipept.gemspec
140
142
  homepage: http://github.ugent.be/bmesuere/unipept/
141
143
  licenses:
142
144
  - MIT
data/.gitignore DELETED
@@ -1,49 +0,0 @@
1
- # rcov generated
2
- coverage
3
- coverage.data
4
-
5
- # rdoc generated
6
- rdoc
7
-
8
- # yard generated
9
- doc
10
- .yardoc
11
-
12
- # bundler
13
- .bundle
14
-
15
- # jeweler generated
16
- pkg
17
-
18
- # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
- #
20
- # * Create a file at ~/.gitignore
21
- # * Include files you want ignored
22
- # * Run: git config --global core.excludesfile ~/.gitignore
23
- #
24
- # After doing this, these files will be ignored in all your git projects,
25
- # saving you from having to 'pollute' every project you touch with them
26
- #
27
- # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
- #
29
- # For MacOS:
30
- #
31
- #.DS_Store
32
-
33
- # For TextMate
34
- #*.tmproj
35
- #tmtags
36
-
37
- # For emacs:
38
- #*~
39
- #\#*
40
- #.\#*
41
-
42
- # For vim:
43
- #*.swp
44
-
45
- # For redcar:
46
- #.redcar
47
-
48
- # For rubinius:
49
- #*.rbc