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: repair SusieFinemapperStep to work with new SL schema and fix lo… #957

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

Daniel-Considine
Copy link
Contributor

@Daniel-Considine Daniel-Considine commented Dec 16, 2024

✨ Context

In some cases the SusieFinemapperStep was not correctly assigning the variant with the highest posteriorProbability as the lead. This was because the code was sorting the column as a string instead of as a float/double.

🛠 What does this PR implement

This PR fixes the issue by casting the posteriorProbability column as a double.

Additionally, it also fixes the schema for one of the other functions which was causing issues when 'confidence' was added to the StudyLocus schema. This is a temporary fix to ensure the function works, and a more robust change with tests will be implemented when I tidy up the finemapping step/functions.

@github-actions github-actions bot added bug Something isn't working size-S Step labels Dec 16, 2024
@github-actions github-actions bot added size-XS and removed size-S labels Dec 18, 2024
@Daniel-Considine Daniel-Considine merged commit e8724cf into dev Dec 19, 2024
5 checks passed
@Daniel-Considine Daniel-Considine deleted the dc_susie_fix branch December 19, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size-XS Step
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants