def find_first_isoform(a, f):
    if a in f:
        return a
    for i in xrange(100):
        ia = ".".join((a, str(i)))
        if ia in f:
            return ia
    return a
dataset/ETHPy150Open tanghaibao/jcvi/apps/ks.py/find_first_isoform/original