def readfileintodict(filename, d):
    with open(filename, 'r') as f:
        lines = f.readlines()
    for l in lines:
        if l[:1] == '#':
            continue
        try:
            key, value = l.split('=', 1)
            d[key] = value.strip()
        except ValueError:
            pass
Compute E matrix from a distance matrix.
dataset/ETHPy150Open coreemu/core/daemon/core/misc/utils.py/readfileintodict--crossover with--dataset/ETHPy150Open biocore/scikit-bio/skbio/stats/ordination/_utils.py/e_matrix