bio2zarr 0.1.2__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of bio2zarr might be problematic. Click here for more details.

Files changed (55) hide show
  1. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/.github/workflows/ci.yml +2 -2
  2. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/CHANGELOG.md +7 -1
  3. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/PKG-INFO +1 -1
  4. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/_version.py +9 -4
  5. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/vcf2zarr/icf.py +11 -1
  6. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/zarr_utils.py +1 -2
  7. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr.egg-info/PKG-INFO +1 -1
  8. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/.github/workflows/cd.yml +0 -0
  9. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/.github/workflows/docs.yml +0 -0
  10. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/.gitignore +0 -0
  11. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/.pre-commit-config.yaml +0 -0
  12. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/LICENSE +0 -0
  13. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/MANIFEST.in +0 -0
  14. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/README.md +0 -0
  15. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/__init__.py +0 -0
  16. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/__main__.py +0 -0
  17. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/cli.py +0 -0
  18. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/constants.py +0 -0
  19. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/core.py +0 -0
  20. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/plink.py +0 -0
  21. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/provenance.py +0 -0
  22. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/typing.py +0 -0
  23. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/vcf2zarr/__init__.py +0 -0
  24. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/vcf2zarr/vcz.py +0 -0
  25. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/vcf2zarr/verification.py +0 -0
  26. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr/vcf_utils.py +0 -0
  27. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr.egg-info/SOURCES.txt +0 -0
  28. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr.egg-info/dependency_links.txt +0 -0
  29. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr.egg-info/entry_points.txt +0 -0
  30. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr.egg-info/requires.txt +0 -0
  31. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/bio2zarr.egg-info/top_level.txt +0 -0
  32. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/Makefile +0 -0
  33. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/_config.yml +0 -0
  34. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/_static/asciinema-player.css +0 -0
  35. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/_static/asciinema-player.min.js +0 -0
  36. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/_static/custom.css +0 -0
  37. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/_toc.yml +0 -0
  38. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/build.sh +0 -0
  39. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/cast_scripts/vcf2zarr_convert.sh +0 -0
  40. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/cast_scripts/vcf2zarr_explode.sh +0 -0
  41. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/installation.md +0 -0
  42. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/intro.md +0 -0
  43. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/logo.png +0 -0
  44. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/requirements.txt +0 -0
  45. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/vcf2zarr/cli_ref.md +0 -0
  46. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/vcf2zarr/overview.md +0 -0
  47. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/vcf2zarr/tutorial.md +0 -0
  48. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/vcfpartition/cli_ref.md +0 -0
  49. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/docs/vcfpartition/overview.md +0 -0
  50. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/pyproject.toml +0 -0
  51. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/setup.cfg +0 -0
  52. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/validation-data/Makefile +0 -0
  53. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/validation-data/split.sh +0 -0
  54. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/validation.py +0 -0
  55. {bio2zarr-0.1.2 → bio2zarr-0.1.3}/vcf_generator.py +0 -0
@@ -138,7 +138,7 @@ jobs:
138
138
  runs-on: ubuntu-latest
139
139
  strategy:
140
140
  matrix:
141
- zarr: ["==2.18.3", ">=3"]
141
+ zarr: ["==2.18.3", ">=3.0.3"]
142
142
  steps:
143
143
  - uses: actions/checkout@v4
144
144
  - uses: actions/setup-python@v5
@@ -153,4 +153,4 @@ jobs:
153
153
  python -m pip install 'zarr${{ matrix.zarr }}'
154
154
  - name: Run tests
155
155
  run: |
156
- python -m pytest -k "not test_double_encode_partition"
156
+ python -m pytest
@@ -1,3 +1,9 @@
1
+ # 0.1.3 2025-03-04
2
+
3
+ - Fix missing dependency issue for packaging
4
+
5
+ - Support out-of-order field definitions in the VCF header (#322, @ACEnglish)
6
+
1
7
  # 0.1.2 2025-02-04
2
8
 
3
9
  - Reduce memory requirement for encoding genotypes with large sample sizes
@@ -20,7 +26,7 @@ Breaking changes
20
26
 
21
27
  Maintenance release:
22
28
 
23
- - Pin numpy to < 2
29
+ - Pin numpy to < 2
24
30
  - Pin Zarr to < 3
25
31
 
26
32
  # 0.1.0 2024-06-10
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: bio2zarr
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Convert bioinformatics data to Zarr
5
5
  Author-email: sgkit Developers <project@sgkit.dev>
6
6
  License: Apache License
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '0.1.2'
16
- __version_tuple__ = version_tuple = (0, 1, 2)
20
+ __version__ = version = '0.1.3'
21
+ __version_tuple__ = version_tuple = (0, 1, 3)
@@ -41,7 +41,7 @@ class VcfFieldSummary(core.JsonDataclass):
41
41
  return VcfFieldSummary(**d)
42
42
 
43
43
 
44
- @dataclasses.dataclass
44
+ @dataclasses.dataclass(order=True)
45
45
  class VcfField:
46
46
  category: str
47
47
  name: str
@@ -192,6 +192,16 @@ class IcfMetadata(core.JsonDataclass):
192
192
  d["contigs"] = [Contig(**cd) for cd in d["contigs"]]
193
193
  return IcfMetadata(**d)
194
194
 
195
+ def __eq__(self, other):
196
+ if not isinstance(other, IcfMetadata):
197
+ return NotImplemented
198
+ return (
199
+ self.samples == other.samples
200
+ and self.contigs == other.contigs
201
+ and self.filters == other.filters
202
+ and sorted(self.fields) == sorted(other.fields)
203
+ )
204
+
195
205
 
196
206
  def fixed_vcf_field_definitions():
197
207
  def make_field_def(name, vcf_type, vcf_number):
@@ -1,9 +1,8 @@
1
1
  import zarr
2
- from packaging.version import Version
3
2
 
4
3
 
5
4
  def zarr_v3() -> bool:
6
- return Version(zarr.__version__).major >= 3
5
+ return zarr.__version__ >= "3"
7
6
 
8
7
 
9
8
  if zarr_v3():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: bio2zarr
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Convert bioinformatics data to Zarr
5
5
  Author-email: sgkit Developers <project@sgkit.dev>
6
6
  License: Apache License
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes