Method: Bio::Alignment::PropertyMethods#is_gap?
- Defined in:
- lib/bio/alignment.rb
#is_gap?(s) ⇒ Boolean
If given character is a gap, returns true. Otherwise, return false. Note that s must be a String which contain a single character.
90 91 92 |
# File 'lib/bio/alignment.rb', line 90 def is_gap?(s) (gap_regexp =~ s) ? true : false end |