Method: Bio::Location#complement
- Defined in:
- lib/bio/location.rb
#complement ⇒ Object
Complements the sequence location (i.e. alternates the strand). Note that it is destructive method (i.e. modifies itself), but it does not modify the “sequence” attribute.
- Returns
-
the Bio::Location object
129 130 131 132 |
# File 'lib/bio/location.rb', line 129 def complement @strand *= -1 self # return Location object end |