bio-gadget 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ module Bio
32
32
  ts = Array.new
33
33
  qs = Array.new
34
34
  (wells + ['other']).each { |well|
35
- q = SizedQueue.new(100000)
35
+ q = SizedQueue.new(1000)
36
36
  t = Thread.new(well, q) do |well, q|
37
37
  tc = Thread.current
38
38
  tc[:file] = "#{options['output-dir']}/#{well}.fq.xz"
@@ -52,7 +52,7 @@ module Bio
52
52
  ts.push(t)
53
53
  }
54
54
 
55
- rq = Queue.new
55
+ rq = SizedQueue.new(1000)
56
56
  Thread.new(rq) {
57
57
  Bio::Faster.new(:stdin).each_record(:quality => :raw) do |seqid, seq, qvs|
58
58
  rq.push([seqid, seq, qvs])
@@ -65,7 +65,7 @@ module Bio
65
65
  if vals != ""
66
66
  seqs.push(vals)
67
67
  end
68
- if vals == "" || seqs.size == 100000 * Parallel.processor_count
68
+ if vals == "" || seqs.size == 10000 * Parallel.processor_count
69
69
  parallel_Levenshtein(seqs, bcs, ofs, bclen, qs)
70
70
  seqs = Array.new
71
71
  end
@@ -3,7 +3,7 @@ require 'thor'
3
3
  module Bio
4
4
  class Gadget < Thor
5
5
 
6
- VERSION = "0.2.1"
6
+ VERSION = "0.2.2"
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-gadget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-09 00:00:00.000000000 Z
12
+ date: 2012-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gthor