@@ -16,13 +16,13 @@ def test_read_vcfzarr(shared_datadir):
16
16
ds = read_vcfzarr (path )
17
17
18
18
assert ds .attrs ["contigs" ] == ["19" , "20" , "X" ]
19
- assert_array_equal (ds ["variant/contig " ], [0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 2 ])
19
+ assert_array_equal (ds ["variant_contig " ], [0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 2 ])
20
20
assert_array_equal (
21
- ds ["variant/position " ],
21
+ ds ["variant_position " ],
22
22
[111 , 112 , 14370 , 17330 , 1110696 , 1230237 , 1234567 , 1235237 , 10 ],
23
23
)
24
24
assert_array_equal (
25
- ds ["variant/alleles " ],
25
+ ds ["variant_allele " ],
26
26
[
27
27
[b"A" , b"C" , b"" , b"" ],
28
28
[b"A" , b"G" , b"" , b"" ],
@@ -36,15 +36,15 @@ def test_read_vcfzarr(shared_datadir):
36
36
],
37
37
)
38
38
assert_array_equal (
39
- ds ["variant/id " ],
39
+ ds ["variant_id " ],
40
40
["." , "." , "rs6054257" , "." , "rs6040355" , "." , "microsat1" , "." , "rsTest" ],
41
41
)
42
42
assert_array_equal (
43
- ds ["variant/id_mask " ],
43
+ ds ["variant_id_mask " ],
44
44
[True , True , False , True , False , True , False , True , False ],
45
45
)
46
46
47
- assert_array_equal (ds ["sample/id " ], ["NA00001" , "NA00002" , "NA00003" ])
47
+ assert_array_equal (ds ["sample_id " ], ["NA00001" , "NA00002" , "NA00003" ])
48
48
49
49
call_genotype = np .array (
50
50
[
@@ -60,9 +60,9 @@ def test_read_vcfzarr(shared_datadir):
60
60
],
61
61
dtype = "i1" ,
62
62
)
63
- assert_array_equal (ds ["call/genotype " ], call_genotype )
64
- assert_array_equal (ds ["call/genotype_mask " ], call_genotype < 0 )
65
- assert "call/genotype_phased " not in ds
63
+ assert_array_equal (ds ["call_genotype " ], call_genotype )
64
+ assert_array_equal (ds ["call_genotype_mask " ], call_genotype < 0 )
65
+ assert "call_genotype_phased " not in ds
66
66
67
67
68
68
def test_ensure_2d ():
0 commit comments