Skip to content

fix: expose cohort size parameters in diversity_stats#1290

Open
adilraza99 wants to merge 3 commits intomalariagen:masterfrom
adilraza99:GH1288-diversity-stats-cohort-params
Open

fix: expose cohort size parameters in diversity_stats#1290
adilraza99 wants to merge 3 commits intomalariagen:masterfrom
adilraza99:GH1288-diversity-stats-cohort-params

Conversation

@adilraza99
Copy link
Copy Markdown
Contributor

Closes #1288

diversity_stats calls cohort_diversity_stats internally but doesn’t expose max_cohort_size or min_cohort_size, so users can’t control downsampling even though the warning suggests setting max_cohort_size=None.

This adds both parameters (defaulting to None) and forwards them through, matching the pattern used by other multi-cohort functions like pairwise_average_fst and h12_gwss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diversity_stats doesn't have a max_cohort_size parameter

1 participant