示例#1
0
文件: sequtil.py 项目: nhoffman/Seq
def reverse_complement(instr, revdict=complementDict):

    l = list(instr.upper())
    l.reverse()
    return ''.join([complementDict.get(char,'X') for char in l])
示例#2
0
文件: sequtil.py 项目: nhoffman/Seq
def complement(instr, revdict=complementDict):

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