module Bio::BioAlignment::Rows
The Rows
module provides accessors for the Row
list returning Row
objects
Public Instance Methods
rows_where(&block)
click to toggle source
Return an copy of an alignment which matching rows. The originating sequences should have methods 'empty_copy' and '<<'
# File lib/bio-alignment/rows.rb, line 13 def rows_where &block seqs = [] rows.each do | seq | seqs << seq.clone if block.call(seq) end Alignment.new(seqs) end