Ejemplo n.º 1
0
def reverse_complement(instr, revdict=complementDict):

    l = list(instr.upper())
    l.reverse()
    return ''.join([complementDict.get(char,'X') for char in l])
Ejemplo n.º 2
0
def complement(instr, revdict=complementDict):

    instr = instr.upper()
    return ''.join([complementDict.get(char,'X') for char in list(instr)])