Method: Bio::Alignment::OriginalAlignment#unshift
- Defined in:
- lib/bio/alignment.rb
#unshift(key, seq) ⇒ Object
Prepends seq (with key) to the front of the alignment. (Like Array#unshift)
1665 1666 1667 1668 1669 1670 1671 |
# File 'lib/bio/alignment.rb', line 1665 def unshift(key, seq) #(Array-like) self.store(key, seq) k = @keys.pop @keys.unshift(k) k end |