def read_summary_data(prefix):
    """Read _summary output file into dict"""

    ret = {}
    for line in open(prefix+'_summary.txt'):
        line = line.strip()
        if line == '' or line[0] == '#':
            continue
        cols = line.split()
        ret[cols[0]] = {'RC': cols[1], 'RCIN': cols[2], 'RCOUT': cols[3]}
    return ret