Method: Bio::Alignment::HashExtension#alignment_collect
- Defined in:
- lib/bio/alignment.rb
#alignment_collect ⇒ Object
Iterates over each sequence and each results running block are collected and returns a new alignment as a Bio::Alignment::SequenceHash object.
Note that it would be redefined if you want to change return value’s class.
1390 1391 1392 1393 1394 1395 1396 1397 |
# File 'lib/bio/alignment.rb', line 1390 def alignment_collect a = SequenceHash.new a.set_all_property(get_all_property) each_pair do |key, str| a.store(key, yield(str)) end a end |