def read_promoters_data(ec_dir=
    '/home/users/assafp/Database/EcoCyc/current/data', pfile='promoters.dat'):
    """
    Read the promoters dat file and return a dictionary tu-> promoter +1
    position
    Arguments:
    - `ec_dir`: The EcoCyc data directory
    - `pfile`: The promoters data file name
    """
    p1pos = None
    tuname = None
    tu_promoters = {}
    with open('%s/%s' % (ec_dir, pfile)) as pin:
        for line in pin:
            if line.startswith('#'):
                continue
            if line.startswith('ABSOLUTE-PLUS-1-POS'):
                p1pos = int(line.strip().split()[-1]) - 1
            if line.startswith('COMPONENT-OF'):
                tutemp = line.strip().split()[-1]
                if tutemp.startswith('TU'):
                    tuname = tutemp
            if line.startswith('//'):
                if tuname and p1pos:
                    tu_promoters[tuname] = p1pos
                p1pos = None
                tuname = None
    return tu_promoters
