Skip to content

Commit

Permalink
Update logic around VCF sorting in VariantProcessingJob
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Feb 9, 2024
1 parent ecde77a commit 8258db3
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,15 @@ private void validateScatterForTask()

public boolean scatterMethodRequiresSort()
{
if (_scatterGatherMethod == null || !_scatterGatherMethod.mayRequireSort())
if (getParameterJson().optBoolean("scatterGather.forceVcfSort", false))
{
return false;
getLogger().debug("forceVcfSort was set");
return true;
}

if (getParameterJson().optBoolean("scatterGather.forceVcfSort", false))
if (_scatterGatherMethod == null || !_scatterGatherMethod.mayRequireSort())
{
return true;
return false;
}

return !doAllowSplitContigs();
Expand Down

0 comments on commit 8258db3

Please sign in to comment.