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

🐛 report BCF2 missing floats #32

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

dmiller15
Copy link
Contributor

Hi Brent,

This PR gives floats dot notation when you set their missing_value to 2139095041.

Going off discussion in #28 , I tested the BCF2 value of 0x7F800001/2139095041 as the missing_value to no avail. I was unable to find any i32 value that could generate the necessary f32 value.

This solution mirrors the methodology used in rust-htslib for missing floats: https://github.com/rust-bio/rust-htslib/blob/3008a131f241b423d041c756fc96410f6412e3d8/src/bcf/record.rs#L33.

@brentp brentp merged commit de24339 into brentp:main Sep 26, 2023
@brentp
Copy link
Owner

brentp commented Sep 26, 2023

thanks very much!

@brentp
Copy link
Owner

brentp commented Sep 26, 2023

I pushed a release with your change: https://github.com/brentp/echtvar/releases/tag/v0.1.9
thanks again.

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