Add experimental support for Zarr format 3#42
Draft
tomwhite wants to merge 1 commit into
Draft
Conversation
f94c48e to
3244d12
Compare
tomwhite
commented
Sep 25, 2025
|
|
||
| This specification depends on definitions and terminology from [The Variant Call Format Specification, VCFv4.3 and BCFv2.2](https://samtools.github.io/hts-specs/VCFv4.3.pdf), | ||
| and [Zarr storage specification version 2](https://zarr.readthedocs.io/en/stable/spec/v2.html). | ||
| and [Zarr storage specification version 2](https://zarr.readthedocs.io/en/stable/spec/v2.html) or [Zarr core specification version 3](https://zarr-specs.readthedocs.io/en/latest/v3/core/index.html) [experimental]. |
Member
Author
There was a problem hiding this comment.
Marked as "experimental" until we've got experience using implementations of this. (Also, I'm not planning on merging this soon.)
tomwhite
commented
Sep 25, 2025
| | `bool` | `\|b1` | `bool` | Flag | | ||
| | `int` | `<i1`, `<i2`, `<i4`, `<i8` or `>i1`, `>i2`, `>i4`, `>i8` | `int8`, `int16`, `int32`, `int64` | Integer | | ||
| | `float` | `<f4`, `<f8` or `>f4`, `>f8` | `float32`, `float64` | Float | | ||
| | `char` | `\<U1` or `\>U1` | `string` | Character | |
Member
Author
There was a problem hiding this comment.
Zarr format v3 doesn't use NumPy dtypes any more, and it doesn't have a "char" type, so I've represented VCF Character as a Zarr string. This would work, but would mean that converting VCF Zarr back to VCF would be lossy in the sense that a VCF Character field would be converted back to a VCF String. This may not matter, but it could potentially be fixed by either i) adding a "char" type/fixed-length string type to Zarr, or ii) adding an attribute to VCF Zarr to record the fact that it is logically a single character.
This was referenced Sep 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #41