File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -362,9 +362,6 @@ def c_chunk_to_vcf(
362
362
vcf_name = name [len ("variant_" ) :]
363
363
info_fields [vcf_name ] = get_vchunk_array (zarray , v_chunk , v_mask_chunk )
364
364
365
- if preceding_future :
366
- concurrent .futures .wait ((preceding_future ,))
367
-
368
365
ref = alleles [:, 0 ].astype ("S" )
369
366
alt = alleles [:, 1 :].astype ("S" )
370
367
@@ -414,6 +411,10 @@ def c_chunk_to_vcf(
414
411
if len (zarray .shape ) == 2 :
415
412
zarray = zarray .reshape ((num_variants , num_samples , 1 ))
416
413
encoder .add_format_field (name , zarray )
414
+
415
+ if preceding_future :
416
+ concurrent .futures .wait ((preceding_future ,))
417
+
417
418
# TODO: (1) make a guess at this based on number of fields and samples,
418
419
# and (2) log a DEBUG message when we have to double.
419
420
buflen = 1024
You can’t perform that action at this time.
0 commit comments