def parse_fs_statsfile(statsfile):
    """opens a fs generated stats file and returns
    a dict of roi keys with [mean, std, nvox], for
    each roi
    """
    roidict = {}
    for line in open(statsfile):
        if line[0] == '#':
            continue
        tmp = line.split()
        roi = tmp[4]
        mean = eval(tmp[5])
        std = eval(tmp[6])
        nvox = eval(tmp[2])
        roidict.update({roi:[mean, std, nvox]})
    return roidict