def group_families(parsed_samples):
    """Group samples on family."""
    raw_families = {}
    for sample in parsed_samples:
        family_id = sample['family']
        if family_id not in raw_families:
            raw_families[family_id] = {'samples': []}
        raw_families[family_id]['samples'].append(sample)
    return raw_families
