Method: Bio::Alignment::EnumerableExtension#remove_all_gaps!
- Defined in:
- lib/bio/alignment.rb
#remove_all_gaps! ⇒ Object
Completely removes ALL gaps in the sequences. If removes nothing, returns nil. Otherwise, returns self.
Note that it is a destructive method.
787 788 789 790 791 792 793 794 |
# File 'lib/bio/alignment.rb', line 787 def remove_all_gaps! ret = nil each_seq do |s| x = s.gsub!(gap_regexp, '') ret ||= x end ret ? self : nil end |