[Source]
# File lib/bio/io/biosql/location.rb, line 19 19: def sequence 20: seq="" 21: unless self.seqfeature.bioentry.biosequence.seq.nil? 22: seq=Bio::Sequence::NA.new(self.seqfeature.bioentry.biosequence.seq[start_pos-1..end_pos-1]) 23: seq.reverse_complement! if strand==-1 24: end 25: return seq 26: end
# File lib/bio/io/biosql/location.rb, line 10 10: def to_s 11: if strand==-1 12: str="complement("+start_pos.to_s+".."+end_pos.to_s+")" 13: else 14: str=start_pos.to_s+".."+end_pos.to_s 15: end 16: return str 17: end
[Validate]