# File lib/ensembl/core/transcript.rb, line 253 def cdna2genomic(pos) #FIXME: Still have to check for when pos is outside of scope of cDNA. # Identify the exon we're looking at. exon_with_target = self.exon_for_cdna_position(pos) accumulated_position = 0 self.exons.each do |exon| if exon == exon_with_target answer = exon.start + ( pos - accumulated_position ) return answer else accumulated_position += exon.length end end end