Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: precision of phenotypes written to pheno file #199

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

aryarm
Copy link
Member

@aryarm aryarm commented Mar 22, 2023

This fixes a serious issue with the way that haptools writes phenotypes to .pheno files. Up until now, it might drop the sign of any negative phenotype values and sometimes leave only two significant bits of precision for floating points. This new code should make the phenotype values much more precise and fix the sign issue.

Users of simphenotype should rerun any analyses with this new code. Shoutout to @LiterallyUniqueLogin for finding this bug and helping me debug it! I've been banging my head for weeks.

@aryarm aryarm marked this pull request as ready for review March 22, 2023 21:00
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.

1 participant