Skip to content

Commit 6c02f9d

Browse files
hyanwongmergify[bot]
authored andcommitted
Remove mention of sgkit
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.
1 parent a080e8f commit 6c02f9d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_variantdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_sgkit_dataset_accessors(tmp_path):
142142
)
143143
ds = sgkit.load_dataset(zarr_path)
144144

145-
assert samples.format_name == "tsinfer-sgkit-sample-data"
145+
assert samples.format_name == "tsinfer-variant-data"
146146
assert samples.format_version == (0, 1)
147147
assert samples.finalised
148148
assert samples.sequence_length == ts.sequence_length + 1337

tsinfer/formats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,7 +2294,7 @@ def populations(self):
22942294

22952295
class VariantData(SampleData):
22962296

2297-
FORMAT_NAME = "tsinfer-sgkit-sample-data"
2297+
FORMAT_NAME = "tsinfer-variant-data"
22982298
FORMAT_VERSION = (0, 1)
22992299

23002300
def __init__(
@@ -2354,7 +2354,7 @@ def __init__(
23542354
if "call_genotype_phased" not in self.data:
23552355
raise ValueError(
23562356
"The call_genotype_phased array is missing from the"
2357-
" sgkit dataset, indicating that all the genotypes are"
2357+
" zarr dataset, indicating that all the genotypes are"
23582358
" unphased"
23592359
)
23602360
if np.any(np.diff(self.sites_position) <= 0):

0 commit comments

Comments
 (0)