Group by sex
It is easy to investigate the differences between males and females.
The sex_predicate()
partitions
the individuals based on their Sex
:
>>> from gpsea.analysis.predicate.genotype import sex_predicate
>>> gt_predicate = sex_predicate()
>>> gt_predicate.group_labels
('FEMALE', 'MALE')
The individuals with UNKNOWN_SEX
will be omitted from the analysis.
Note that we implemented this predicate as a genotype predicate. Currently, it is not possible to compare the distribution of genotypes across sexes.