Class: Bio::SQL::Seqfeature

Inherits:
DummyBase show all
Defined in:
lib/bio/io/biosql/ar-biosql.rb

Instance Method Summary collapse

Instance Method Details

#sequenceObject

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