File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -843,17 +843,10 @@ def encode_local_alleles_partition(self, partition_index):
843
843
store = self .wip_partition_array_path (partition_index , "call_genotype" ),
844
844
mode = "r" ,
845
845
)
846
- alleles_array = zarr .open_array (
847
- store = self .wip_partition_array_path (partition_index , "variant_allele" ),
848
- mode = "r" ,
849
- )
850
846
for chunk_index in range (gt_array .cdata_shape [0 ]):
851
- A = alleles_array .blocks [chunk_index ]
852
- G = gt_array .blocks [chunk_index ]
853
- for alleles , var in zip (A , G ):
847
+ for genotypes in gt_array .blocks [chunk_index ]:
854
848
j = call_LAA .next_buffer_row ()
855
- # TODO we should probably compute LAAs by chunk for efficiency
856
- call_LAA .buff [j ] = compute_laa_field (var , alleles )
849
+ call_LAA .buff [j ] = compute_laa_field (genotypes )
857
850
858
851
call_LAA .flush ()
859
852
self .finalise_partition_array (partition_index , "call_LAA" )
You can’t perform that action at this time.
0 commit comments