Class: Bio::SQL::Seqfeature
- Defined in:
- lib/bio/io/biosql/ar-biosql.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
174 175 176 |
# File 'lib/bio/io/biosql/ar-biosql.rb', line 174 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
181 182 183 |
# File 'lib/bio/io/biosql/ar-biosql.rb', line 181 def translate(*args) self.sequence.translate(*args) end |