Class: Bio::SQL::Seqfeature

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

Instance Method Summary collapse

Instance Method Details

#sequenceObject

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