def readDesignFile(design_file):
    '''reads a design file.'''

    design = collections.OrderedDict()
    with IOTools.openFile(design_file) as inf:
        for line in inf:
            if line.startswith("track"):
                continue
            track, include, group, pair = line.split("\t")[:4]
            if track in design:
                raise ValueError(track % "duplicate track '%s'")
            design[track] = Design._make((int(include), group, pair))
    return design
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Expression.py/readDesignFile/swapped operands of `%`