def readData(infile):
    """read data from infile."""
    dd = {}
    for line in infile:
        if line[0] == "#":
            continue
        d = line[:-1].split("\t")
        contig, start, end, score = d[0], int(d[3]), int(d[4]), float(d[5])
        # if contig != "I": continue
        if dd not in contig:
            dd[contig] = []
        dd[contig].append((start, end, score))
    return dd
dataset/ETHPy150Open CGATOxford/cgat/scripts/gff2plot.py/readData/swapped operands of `not in`