bix 0.0.2 → 0.0.3

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 (2) hide show
  1. data/lib/bix/fastq.rb +17 -0
  2. metadata +2 -2
@@ -18,6 +18,15 @@ module Bix
18
18
  return true
19
19
  end
20
20
 
21
+ def self.from_io(io)
22
+ fq = Fastq.new
23
+ if fq.from_io(io)
24
+ return fq
25
+ else
26
+ return nil
27
+ end
28
+ end
29
+
21
30
  def qual_val(i)
22
31
  return @qual[i].ord
23
32
  end
@@ -26,4 +35,12 @@ module Bix
26
35
  return "#{@header}\n#{@seq}\n+\n#{@qual}"
27
36
  end
28
37
  end
38
+
39
+ def self.get_all_fastqs(io)
40
+ fqs = []
41
+ while(fq = Fastq.from_io(io))
42
+ fqs << fq
43
+ end
44
+ return fqs
45
+ end
29
46
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bix
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jesse Rodriguez
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-01 00:00:00 Z
13
+ date: 2011-09-02 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: swak