Class: Bio::Sequence::NA
- Inherits:
-
Object
- Object
- Bio::Sequence::NA
- Defined in:
- lib/bio-kmer_counter/kmer_counter.rb
Instance Method Summary collapse
-
#lowest_lexigraphical_form ⇒ Object
Return the current object or its reverse complement, whichever has the sequence that comes first in lexigraphical (alphabetical) order.
Instance Method Details
#lowest_lexigraphical_form ⇒ Object
Return the current object or its reverse complement, whichever has the sequence that comes first in lexigraphical (alphabetical) order
8 9 10 11 |
# File 'lib/bio-kmer_counter/kmer_counter.rb', line 8 def lowest_lexigraphical_form rev = self.reverse_complement to_s < rev.to_s ? self : rev end |