@@ -30,11 +30,12 @@ def test_update_sample_lookup_table_task(self) -> None:
30
30
self .assertTrue (uslt_task .output ().exists ())
31
31
self .assertTrue (uslt_task .complete ())
32
32
ht = hl .read_table (uslt_task .output ().path )
33
- print (ht .globals .collect ())
34
33
self .assertEqual (
35
34
ht .globals .collect (),
36
35
[
37
36
hl .Struct (
37
+ project_guids = ['R0113_test_project' ],
38
+ project_families = {'R0113_test_project' : ['abc_1' ]},
38
39
updates = {
39
40
hl .Struct (callset = TEST_VCF , project_guid = 'R0113_test_project' ),
40
41
},
@@ -51,11 +52,7 @@ def test_update_sample_lookup_table_task(self) -> None:
51
52
reference_genome = 'GRCh38' ,
52
53
),
53
54
alleles = ['A' , 'C' ],
54
- ref_samples = hl .Struct (
55
- R0113_test_project = {'HG00733_1' , 'HG00732_1' , 'HG00731_1' },
56
- ),
57
- het_samples = hl .Struct (R0113_test_project = set ()),
58
- hom_samples = hl .Struct (R0113_test_project = set ()),
55
+ project_stats = [[hl .Struct (ref_samples = 3 , het_samples = 0 , hom_samples = 0 )]],
59
56
),
60
57
hl .Struct (
61
58
locus = hl .Locus (
@@ -64,11 +61,7 @@ def test_update_sample_lookup_table_task(self) -> None:
64
61
reference_genome = 'GRCh38' ,
65
62
),
66
63
alleles = ['C' , 'T' ],
67
- ref_samples = hl .Struct (
68
- R0113_test_project = {'HG00733_1' , 'HG00732_1' , 'HG00731_1' },
69
- ),
70
- het_samples = hl .Struct (R0113_test_project = set ()),
71
- hom_samples = hl .Struct (R0113_test_project = set ()),
64
+ project_stats = [[hl .Struct (ref_samples = 3 , het_samples = 0 , hom_samples = 0 )]],
72
65
),
73
66
hl .Struct (
74
67
locus = hl .Locus (
@@ -77,11 +70,7 @@ def test_update_sample_lookup_table_task(self) -> None:
77
70
reference_genome = 'GRCh38' ,
78
71
),
79
72
alleles = ['A' , 'G' ],
80
- ref_samples = hl .Struct (R0113_test_project = set ()),
81
- het_samples = hl .Struct (R0113_test_project = set ()),
82
- hom_samples = hl .Struct (
83
- R0113_test_project = {'HG00733_1' , 'HG00732_1' , 'HG00731_1' },
84
- ),
73
+ project_stats = [[hl .Struct (ref_samples = 0 , het_samples = 0 , hom_samples = 3 )]],
85
74
),
86
75
hl .Struct (
87
76
locus = hl .Locus (
@@ -90,11 +79,7 @@ def test_update_sample_lookup_table_task(self) -> None:
90
79
reference_genome = 'GRCh38' ,
91
80
),
92
81
alleles = ['G' , 'C' ],
93
- ref_samples = hl .Struct (R0113_test_project = {'HG00732_1' }),
94
- het_samples = hl .Struct (
95
- R0113_test_project = {'HG00731_1' , 'HG00733_1' },
96
- ),
97
- hom_samples = hl .Struct (R0113_test_project = set ()),
82
+ project_stats = [[hl .Struct (ref_samples = 1 , het_samples = 2 , hom_samples = 0 )]],
98
83
),
99
84
hl .Struct (
100
85
locus = hl .Locus (
@@ -103,11 +88,7 @@ def test_update_sample_lookup_table_task(self) -> None:
103
88
reference_genome = 'GRCh38' ,
104
89
),
105
90
alleles = ['C' , 'T' ],
106
- ref_samples = hl .Struct (
107
- R0113_test_project = {'HG00733_1' , 'HG00732_1' , 'HG00731_1' },
108
- ),
109
- het_samples = hl .Struct (R0113_test_project = set ()),
110
- hom_samples = hl .Struct (R0113_test_project = set ()),
91
+ project_stats = [[hl .Struct (ref_samples = 3 , het_samples = 0 , hom_samples = 0 )]],
111
92
),
112
93
hl .Struct (
113
94
locus = hl .Locus (
@@ -116,11 +97,7 @@ def test_update_sample_lookup_table_task(self) -> None:
116
97
reference_genome = 'GRCh38' ,
117
98
),
118
99
alleles = ['C' , 'T' ],
119
- ref_samples = hl .Struct (
120
- R0113_test_project = {'HG00731_1' , 'HG00733_1' },
121
- ),
122
- het_samples = hl .Struct (R0113_test_project = {'HG00732_1' }),
123
- hom_samples = hl .Struct (R0113_test_project = set ()),
100
+ project_stats = [[hl .Struct (ref_samples = 2 , het_samples = 1 , hom_samples = 0 )]],
124
101
),
125
102
hl .Struct (
126
103
locus = hl .Locus (
@@ -129,9 +106,7 @@ def test_update_sample_lookup_table_task(self) -> None:
129
106
reference_genome = 'GRCh38' ,
130
107
),
131
108
alleles = ['G' , 'A' ],
132
- ref_samples = hl .Struct (R0113_test_project = {'HG00732_1' }),
133
- het_samples = hl .Struct (R0113_test_project = {'HG00733_1' }),
134
- hom_samples = hl .Struct (R0113_test_project = {'HG00731_1' }),
109
+ project_stats = [[hl .Struct (ref_samples = 1 , het_samples = 1 , hom_samples = 1 )]],
135
110
),
136
111
hl .Struct (
137
112
locus = hl .Locus (
@@ -140,11 +115,7 @@ def test_update_sample_lookup_table_task(self) -> None:
140
115
reference_genome = 'GRCh38' ,
141
116
),
142
117
alleles = ['G' , 'A' ],
143
- ref_samples = hl .Struct (
144
- R0113_test_project = {'HG00733_1' , 'HG00732_1' , 'HG00731_1' },
145
- ),
146
- het_samples = hl .Struct (R0113_test_project = set ()),
147
- hom_samples = hl .Struct (R0113_test_project = set ()),
118
+ project_stats = [[hl .Struct (ref_samples = 3 , het_samples = 0 , hom_samples = 0 )]],
148
119
),
149
120
hl .Struct (
150
121
locus = hl .Locus (
@@ -153,11 +124,7 @@ def test_update_sample_lookup_table_task(self) -> None:
153
124
reference_genome = 'GRCh38' ,
154
125
),
155
126
alleles = ['G' , 'A' ],
156
- ref_samples = hl .Struct (
157
- R0113_test_project = {'HG00733_1' , 'HG00732_1' , 'HG00731_1' },
158
- ),
159
- het_samples = hl .Struct (R0113_test_project = set ()),
160
- hom_samples = hl .Struct (R0113_test_project = set ()),
127
+ project_stats = [[hl .Struct (ref_samples = 3 , het_samples = 0 , hom_samples = 0 )]],
161
128
),
162
129
hl .Struct (
163
130
locus = hl .Locus (
@@ -166,11 +133,7 @@ def test_update_sample_lookup_table_task(self) -> None:
166
133
reference_genome = 'GRCh38' ,
167
134
),
168
135
alleles = ['C' , 'T' ],
169
- ref_samples = hl .Struct (
170
- R0113_test_project = {'HG00733_1' , 'HG00732_1' , 'HG00731_1' },
171
- ),
172
- het_samples = hl .Struct (R0113_test_project = set ()),
173
- hom_samples = hl .Struct (R0113_test_project = set ()),
136
+ project_stats = [[hl .Struct (ref_samples = 3 , het_samples = 0 , hom_samples = 0 )]],
174
137
),
175
138
hl .Struct (
176
139
locus = hl .Locus (
@@ -179,11 +142,7 @@ def test_update_sample_lookup_table_task(self) -> None:
179
142
reference_genome = 'GRCh38' ,
180
143
),
181
144
alleles = ['A' , 'G' ],
182
- ref_samples = hl .Struct (R0113_test_project = set ()),
183
- het_samples = hl .Struct (R0113_test_project = set ()),
184
- hom_samples = hl .Struct (
185
- R0113_test_project = {'HG00733_1' , 'HG00732_1' , 'HG00731_1' },
186
- ),
145
+ project_stats = [[hl .Struct (ref_samples = 0 , het_samples = 0 , hom_samples = 3 )]],
187
146
),
188
147
],
189
148
)
0 commit comments