Class: Bio::SQL::Seqfeature

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) sequence

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

- (Object) translate(*args)

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