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 two bug due to datatype (Float32 or Float 64) and the variance module #150

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

zhaotianjing
Copy link
Collaborator

fixed two bugs for single-step:

  1. use geno.genetic_variance.val instead of geno.genetic_variance because now it is the Variance struct.
  2. in impute_genotypes(), make sure the data type (Float32 or Float64) of genotypes is unchanged after imputation. Otherwise the impute_genotypes() will only create Float64 genotype matrix, and this will cause an error for BLAS.axpy!(oldAlpha-α[j],x,yCorr) when x is Float64 but yCorr is Float32.

@zhaotianjing zhaotianjing requested a review from reworkhow March 5, 2024 23:38
@reworkhow reworkhow merged commit a4905a6 into master Mar 8, 2024
1 check passed
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.

2 participants