Skip to content

Commit

Permalink
Document path_or_zarr
Browse files Browse the repository at this point in the history
  • Loading branch information
hyanwong committed Sep 10, 2024
1 parent e542f7c commit d5322df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tsinfer/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -2308,8 +2308,10 @@ class VariantData(SampleData):
the inference process will have ``inferred_ts.num_samples`` equal to double
the number returned by ``VariantData.num_samples``.
:param str path: The path to the file containing the input dataset in VCF-Zarr
format.
:param Union(str, zarr.hierarchy.Group) path_or_zarr: The input dataset in
`VCF Zarr <https://github.com/sgkit-dev/vcf-zarr-spec>`_ format.
This can either a path to the Zarr dataset saved on disk, or the
Zarr object itself.
:param Union(array, str) ancestral_state: A numpy array of strings specifying
the ancestral states (alleles) used in inference. This must be the same length
as the number of unmasked sites in the dataset. Alternatively, a single string
Expand Down

0 comments on commit d5322df

Please sign in to comment.