Skip to content

Commit 0e23af3

Browse files
committed
hot-loop optimization or pre-mature optimization?
1 parent e450aa2 commit 0e23af3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wdl/tasks/VariantCalling/GLNexus.wdl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ workflow JointCall {
5454
call ShardVCFByRanges { input: gvcf = p.left, tbi = p.right, ranges = GetRanges.ranges }
5555
}
5656
57+
Array[Array[File]] per_range_per_sample_gvcfs = transpose(ShardVCFByRanges.sharded_gvcfs)
5758
# Joint-call in parallel over chromosomes
58-
scatter (i in range(length(ShardVCFByRanges.sharded_gvcfs[0]))) {
59-
Array[File] per_contig_gvcfs = transpose(ShardVCFByRanges.sharded_gvcfs)[i]
59+
scatter (i in range(length(GetRanges.ranges))) {
60+
Array[File] per_contig_gvcfs = per_range_per_sample_gvcfs[i]
6061

6162
call Call {
6263
input:

0 commit comments

Comments
 (0)