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

'.' missing value placeholder #45

Open
davidfstein opened this issue Nov 17, 2024 · 1 comment
Open

'.' missing value placeholder #45

davidfstein opened this issue Nov 17, 2024 · 1 comment

Comments

@davidfstein
Copy link

This config

{"field": "AF_grpmax_exomes", alias:"gnomad_AF_grpmax_exomes", "missing_value": -2147483648, "multiplier": 2000000},

results in -2.14748e+09 for missing values instead of "." as indicated in the documentation.

@brentp
Copy link
Owner

brentp commented Jan 22, 2025

hi, sorry for the delay, I'll look into this. that's correct for mssing value, here's the definitions from htslib:

#define bcf_int8_missing     (-128)          /* INT8_MIN  */
#define bcf_int16_missing    (-32767-1)      /* INT16_MIN */
#define bcf_int32_missing    (-2147483647-1) /* INT32_MIN */
#define bcf_int64_missing    (-9223372036854775807LL - 1LL)

but it must be getting lost during encoding.

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

No branches or pull requests

2 participants