Skip to content

Commit

Permalink
Remove mention of sgkit
Browse files Browse the repository at this point in the history
Note that this changes the FORMAT_NAME, so is no longer backward-compatible with previous tsinfer data files. But I think that's fine, because we only save the .vcz file normally anyway.
  • Loading branch information
hyanwong committed Sep 5, 2024
1 parent a080e8f commit a000185
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_variantdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_sgkit_dataset_accessors(tmp_path):
)
ds = sgkit.load_dataset(zarr_path)

assert samples.format_name == "tsinfer-sgkit-sample-data"
assert samples.format_name == "tsinfer-variant-data"
assert samples.format_version == (0, 1)
assert samples.finalised
assert samples.sequence_length == ts.sequence_length + 1337
Expand Down
4 changes: 2 additions & 2 deletions tsinfer/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ def populations(self):

class VariantData(SampleData):

FORMAT_NAME = "tsinfer-sgkit-sample-data"
FORMAT_NAME = "tsinfer-variant-data"
FORMAT_VERSION = (0, 1)

def __init__(
Expand Down Expand Up @@ -2354,7 +2354,7 @@ def __init__(
if "call_genotype_phased" not in self.data:
raise ValueError(
"The call_genotype_phased array is missing from the"
" sgkit dataset, indicating that all the genotypes are"
" zarr dataset, indicating that all the genotypes are"
" unphased"
)
if np.any(np.diff(self.sites_position) <= 0):
Expand Down

0 comments on commit a000185

Please sign in to comment.