-
Notifications
You must be signed in to change notification settings - Fork 10
Add variant_length to output for plink and tskit, make missing arrays for index an error #382
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - we can probably refine the API a bit, but good step in the right direction.
@tomwhite does this look right to you in terms of computing variant length? Should we do this, storing a "length" field everywhere, or have some fallback in the index computation code which computes the default when it's missing?
This looks good to me. It's not obvious to me that there is a general way of computing it so having the formats provide is safest. |
bio2zarr/vcf.py
Outdated
@@ -1145,14 +1156,12 @@ def fixed_field_spec(name, dtype, source=None, dimensions=("variants",)): | |||
dtype="bool", | |||
), | |||
] | |||
name_map = {field.full_name: field for field in self.metadata.fields} | |||
|
|||
# Only three of the fixed fields have a direct one-to-one mapping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Only three of the fixed fields have a direct one-to-one mapping. | |
# Only two of the fixed fields have a direct one-to-one mapping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed
a28f22d
to
3829dbb
Compare
Rebased and ready to go |
3829dbb
to
4208173
Compare
Looks like there's a real coverage drop here, with some warnings that used to be tested no longer covered. We should address these (in general, coverage drops aren't something we want) |
It's the index-when-arrays-missing error case has been uncovered (it was accidentally covered before). I'll add a specific test for it. |
4208173
to
18317a3
Compare
… for index an error
18317a3
to
7049588
Compare
Test added and rebased. Coveralls now happy. |
Fixes #379