Skip to content

Commit 7f23758

Browse files
hyanwongmergify[bot]
authored andcommitted
Document path_or_zarr
1 parent e542f7c commit 7f23758

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
## [0.4.0a3] - ****-**-**
44

5+
**Features**
6+
7+
- Document that the `zarr-vcf` dataset can be either a path or an in-memory zarr group.
8+
(feature introduced in {pr}`966`, documented in {pr}`974`, {user}`hyanwong`)
9+
510
**Fixes**
611

712
- Properly account for "N" as an unknown ancestral state, and ban "" from being
8-
set as an ancestral state ({pr}`963`, {user}`hyanwong`))
13+
set as an ancestral state ({pr}`963`, {user}`hyanwong`)
914

1015
## [0.4.0a2] - 2024-09-06
1116

tsinfer/formats.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2308,8 +2308,10 @@ class VariantData(SampleData):
23082308
the inference process will have ``inferred_ts.num_samples`` equal to double
23092309
the number returned by ``VariantData.num_samples``.
23102310
2311-
:param str path: The path to the file containing the input dataset in VCF-Zarr
2312-
format.
2311+
:param Union(str, zarr.hierarchy.Group) path_or_zarr: The input dataset in
2312+
`VCF Zarr <https://github.com/sgkit-dev/vcf-zarr-spec>`_ format.
2313+
This can either a path to the Zarr dataset saved on disk, or the
2314+
Zarr object itself.
23132315
:param Union(array, str) ancestral_state: A numpy array of strings specifying
23142316
the ancestral states (alleles) used in inference. This must be the same length
23152317
as the number of unmasked sites in the dataset. Alternatively, a single string

0 commit comments

Comments
 (0)