def _coord(sequence, start, mirna, precursor, iso):
dif = abs(mirna[<NUM_LIT:0>] - start)<EOL>if start < mirna[<NUM_LIT:0>]:<EOL><INDENT>iso.t5 = sequence[:dif].upper()<EOL><DEDENT>elif start > mirna[<NUM_LIT:0>]:<EOL><INDENT>iso.t5 = precursor[mirna[<NUM_LIT:0>] - <NUM_LIT:1>:mirna[<NUM_LIT:0>] - <NUM_LIT:1> + dif].lower()<EOL><DEDENT>elif start == mirna[<NUM_LIT:0>]:<EOL><INDENT>iso.t5 = "<STR_LIT>"<EOL><DEDENT>if dif > <NUM_LIT:4>:<EOL><INDENT>logger.debug("<STR_LIT>" % (start, len(sequence), dif, mirna, iso.format()))<EOL>return None<EOL><DEDENT>end = start + (len(sequence) - len(iso.add)) - <NUM_LIT:1><EOL>dif = abs(mirna[<NUM_LIT:1>] - end)<EOL>if iso.add:<EOL><INDENT>sequence = sequence[:-len(iso.add)]<EOL><DEDENT>if end > mirna[<NUM_LIT:1>]:<EOL><INDENT>iso.t3 = sequence[-dif:].upper()<EOL><DEDENT>elif end < mirna[<NUM_LIT:1>]:<EOL><INDENT>iso.t3 = precursor[mirna[<NUM_LIT:1>] - dif:mirna[<NUM_LIT:1>]].lower()<EOL><DEDENT>elif end == mirna[<NUM_LIT:1>]:<EOL><INDENT>iso.t3 = "<STR_LIT>"<EOL><DEDENT>if dif > <NUM_LIT:4>:<EOL><INDENT>logger.debug("<STR_LIT>" % (len(sequence), end, dif, mirna, iso.format()))<EOL>return None<EOL><DEDENT>logger.debug("<STR_LIT>" % (start, len(sequence), end, dif, mirna, iso.format()))<EOL>return True<EOL>
Define t5 and t3 isomirs