Module: Bio::BioAlignment::Rows
- Included in:
- Alignment
- Defined in:
- lib/bio-alignment/rows.rb
Overview
The Rows module provides accessors for the Row list returning Row objects
Instance Method Summary collapse
-
#rows_where(&block) ⇒ Object
Return an copy of an alignment which matching rows.
Instance Method Details
#rows_where(&block) ⇒ Object
Return an copy of an alignment which matching rows. The originating sequences should have methods ‘empty_copy’ and ‘<<’
13 14 15 16 17 18 19 |
# 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 |