Skip to content

Return NaN for zns/omega with no complete site rather than erroring out - #399

Open
nspope wants to merge 1 commit into
mainfrom
fix/345-zns-omega-empty-exclude
Open

nspope wants to merge 1 commit into
mainfrom
fix/345-zns-omega-empty-exclude

Conversation

@nspope

@nspope nspope commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Closes #345

GenotypeMatrix with missing_data='exclude' drops sites with any missing call before estimating r^2; when that leaves no column at all, the GenotypeMatrix constructor rejected the empty result instead of letting the reducers report their usual no-pair NaN.

GenotypeMatrix with missing_data='exclude' drops sites with any missing
call before estimating r^2; when that leaves no column at all, the
GenotypeMatrix constructor rejected the empty result instead of letting
the reducers report their usual no-pair NaN.
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.

zns and omega on a GenotypeMatrix with missing_data='exclude' crash when no site is complete

1 participant