def label2dict(label):
    """
    Converts labels like "{ph:0, Farnesol:1, Serum:0, Rapamycin:0}" to dict
    """
    terms = label[1:-1].split(',')
    d = dict()
    for term in  terms:
        key, val = term.split(":")
        d[key.strip()] = val.strip()
    return d