def xfamily(self): individuals = [ i.xindividual() for i in self.get_individuals_with_variant_data() ] return XFamily(self.family_id, individuals, project_id=self.project.project_id)
def xfamily(self): individuals = [i.xindividual() for i in self.individuals.all()] return XFamily(self.cohort_id, individuals, project_id=self.project.project_id)