def get_scop_labels_from_string(scop_label):
    """
    In [23]: label
    Out[23]: 'a.1.1.1'

    In [24]: get_scop_labels_from_string(label)
    Out[24]: ('a', 'a.1', 'a.1.1', 'a.1.1.1')
    """
    class_, fold, superfam, fam = scop_label.split('.')
    fold = '.'.join([class_, fold])
    superfam = '.'.join([fold, superfam])
    fam = '.'.join([superfam, fam])
    return class_, fold, superfam, fam