Skip to content

Commit b407ed5

Browse files
Fixup
1 parent 2f48e3f commit b407ed5

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

bio2zarr/vcf2zarr/vcz.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -843,17 +843,10 @@ def encode_local_alleles_partition(self, partition_index):
843843
store=self.wip_partition_array_path(partition_index, "call_genotype"),
844844
mode="r",
845845
)
846-
alleles_array = zarr.open_array(
847-
store=self.wip_partition_array_path(partition_index, "variant_allele"),
848-
mode="r",
849-
)
850846
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]:
854848
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)
857850

858851
call_LAA.flush()
859852
self.finalise_partition_array(partition_index, "call_LAA")

0 commit comments

Comments
 (0)