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: case where genotypes are all the same but heritability is specified in simphenotype #145

Merged
merged 11 commits into from
Nov 15, 2022

Conversation

aryarm
Copy link
Member

@aryarm aryarm commented Nov 11, 2022

resolves #95

If the genotypes are all the same, they will have a variance of 0, so the noise term ends up being 0. However, if the user specified a heritability value, then there should be some reasonable expectation of noise in the output.

This PR also adds a test to cover this edge case.

@aryarm aryarm requested a review from s041629 November 11, 2022 20:14
@aryarm aryarm merged commit 063b411 into main Nov 15, 2022
@aryarm aryarm deleted the fix/same-gts-in-simpts branch November 15, 2022 00:22
@aryarm aryarm restored the fix/same-gts-in-simpts branch December 23, 2022 22:59
@aryarm aryarm deleted the fix/same-gts-in-simpts branch December 24, 2022 01:13
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.

genotypes that are all the same can lead to 0s in simphenotype
1 participant