def set_family_info(self):
        """
        Extract the relevant genotype filters, as well all labels
        for each family in the database.
        """
        self.families = families = Family.from_cursor(self.gq.conn).values()
        args = self.args

        self.family_ids = []
        self.family_masks = []
        kwargs = {'only_affected': not getattr(self.args, "allow_unaffected", False),
                  'min_gq': args.min_gq}
        if self.model == "mendel_violations":
            kwargs = {'only_affected': self.args.only_affected}
        if self.model != "comp_het" and self.model != "mendel_violations":
            if hasattr(self.args, 'lenient'):
                kwargs['strict'] = not self.args.lenient
        elif self.model == "comp_het":
            kwargs['pattern_only'] = self.args.pattern_only
        if hasattr(self.args, 'gt_phred_ll'):
            kwargs['gt_ll'] = self.args.gt_phred_ll

        if self.model in ('x_rec', 'x_dom', 'x_denovo'):
            kwargs.pop('only_affected')

        requested_fams = None if not args.families else set(args.families.split(","))

        for family in families:
            if requested_fams is None or requested_fams in family.family_id:
                # e.g. family.auto_rec(gt_ll, min_depth)
                family_filter = getattr(family, self.model)(
                                    min_depth=self.args.min_sample_depth,
                                    **kwargs)
            else:
                family_filter = 'False'

            self.family_masks.append(family_filter)
            self.family_ids.append(family.family_id)
dataset/ETHPy150Open arq5x/gemini/gemini/gim.py/GeminiInheritanceModel.set_family_info/swapped operands of `in`