Class: Bio::SQL::Seqfeature
- Defined in:
- lib/bio/io/biosql/seqfeature.rb
Instance Method Summary collapse
-
#sequence ⇒ Object
get the subsequence described by the locations objects.
-
#translate(*args) ⇒ Object
translate the subsequences represented by the feature and its locations not considering the qualifiers Return a Bio::Sequence::AA object.
Instance Method Details
#sequence ⇒ Object
get the subsequence described by the locations objects
20 21 22 |
# File 'lib/bio/io/biosql/seqfeature.rb', line 20 def sequence return self.locations.inject(Bio::Sequence::NA.new("")){|seq, location| seq<<location.sequence} end |
#translate(*args) ⇒ Object
translate the subsequences represented by the feature and its locations not considering the qualifiers Return a Bio::Sequence::AA object
27 28 29 |
# File 'lib/bio/io/biosql/seqfeature.rb', line 27 def translate(*args) self.sequence.translate(*args) end |