Method: Bio::SQL::Location#sequence

Defined in:
lib/bio/io/biosql/location.rb

#sequenceObject



19
20
21
22
23
24
25
26
# File 'lib/bio/io/biosql/location.rb', line 19

def sequence
  seq=""
  unless self.seqfeature.bioentry.biosequence.seq.nil?
    seq=Bio::Sequence::NA.new(self.seqfeature.bioentry.biosequence.seq[start_pos-1..end_pos-1])
    seq.reverse_complement! if strand==-1
  end
  return seq        
end