unipept 0.3.1 → 0.3.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/unipept +5 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8ceae14f14f26fc95744563b982738ef445d77b
4
- data.tar.gz: e3a91a2e7ca3b2b076c19e0d7291bb90c69dfd04
3
+ metadata.gz: 600ed2755ace1b8b8b617e9e0065ee94ba7ca54a
4
+ data.tar.gz: 2a243e1447775619c9647e8686392dda876d9531
5
5
  SHA512:
6
- metadata.gz: 354c5fd790c33c79d638455350a1b27aba0dfddf5e5d8e1b0c23c09ecaee7d185a88b7ad9be8fc14fdb1653e8f5c7bc71809085556da1b3c6bac7771b022eb3e
7
- data.tar.gz: 0f86c782e0e1f058f6b5243671897b62619051334cd4f8e8f6f51bf655f160e1aeab28271b7226cd093cfaf9e9ff962ae1e476d37f4767e32882abeaaeb12700
6
+ metadata.gz: 05527d12256c915151a261e29ab6be21bce9f787ed004b9607e4b63f76bc4b8d1d0224933e32702915bd90ac663779f8b626f44d36d69759d1ca8a70885b3dea
7
+ data.tar.gz: cb2590b866380a7658827e615598bbe640004bfe5d19cc72160cc8081da37f57c8dafde1bf181ecf475f0ac69c66db4aad13011d33336688225282818d06db86
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
data/bin/unipept CHANGED
@@ -78,7 +78,7 @@ class ApiRunner < Cri::CommandRunner
78
78
  hydra = Typhoeus::Hydra.new(max_concurrency: 20)
79
79
  num_req = 0
80
80
 
81
- peptide_iterator(peptides).with_index do |sub_division, i|
81
+ peptide_iterator(peptides) do |sub_division, i|
82
82
  if $interupted
83
83
  $stdin.close
84
84
  exit 1
@@ -159,7 +159,7 @@ class ApiRunner < Cri::CommandRunner
159
159
  end
160
160
 
161
161
  def peptide_iterator(peptides, &block)
162
- peptides.each_slice(batch_size, &block)
162
+ peptides.each_slice(batch_size).with_index(&block)
163
163
  end
164
164
 
165
165
  private
@@ -181,7 +181,7 @@ class Taxa2lca < ApiRunner
181
181
  end
182
182
 
183
183
  def peptide_iterator(peptides, &block)
184
- block.call(peptides.to_a)
184
+ block.call(peptides.to_a, 0)
185
185
  end
186
186
 
187
187
  def batch_size
@@ -197,7 +197,7 @@ class Pept2prot < ApiRunner
197
197
  end
198
198
 
199
199
  def url_options(sub_part)
200
- {:sequences => sub_part, :equate_il => options[:equate]}
200
+ {:sequences => sub_part, :equate_il => options[:equate], :extra => options[:all]}
201
201
  end
202
202
 
203
203
  def download_xml(result)
@@ -294,6 +294,7 @@ root_cmd.define_command('pept2prot') do
294
294
  flag :e, :equate, "equate I and L"
295
295
  option :s, :select, "select the attributes", :argument => :required, :multiple => true
296
296
  option :x, :xml, "download uniprot record in specified directory", :argument => :required
297
+ flag :a, :all, "include all information. WARNING: will take much longer!"
297
298
 
298
299
  runner Pept2prot
299
300
  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.1
4
+ version: 0.3.2
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-06 00:00:00.000000000 Z
11
+ date: 2014-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda