Class: BlastClust
- Inherits:
-
Object
- Object
- BlastClust
- Defined in:
- lib/bigbio/db/blast/blastclust.rb
Overview
Parse BLAST cluster file
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(fn) ⇒ BlastClust
constructor
A new instance of BlastClust.
Constructor Details
#initialize(fn) ⇒ BlastClust
Returns a new instance of BlastClust.
6 7 8 |
# File 'lib/bigbio/db/blast/blastclust.rb', line 6 def initialize fn @fn = fn end |
Instance Method Details
#each ⇒ Object
10 11 12 13 14 |
# File 'lib/bigbio/db/blast/blastclust.rb', line 10 def each File.new(@fn).each_line do | line | yield line.split end end |