Skip to content

Commit

Permalink
reset random generator at beginning of FilterMutectCalls (#6208)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbenjamin authored Oct 17, 2019
1 parent 80f4b50 commit 917c8eb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.broadinstitute.hellbender.exceptions.UserException;
import org.broadinstitute.hellbender.tools.walkers.contamination.CalculateContamination;
import org.broadinstitute.hellbender.tools.walkers.mutect.Mutect2;
import org.broadinstitute.hellbender.utils.Utils;
import org.broadinstitute.hellbender.utils.io.IOUtils;
import org.broadinstitute.hellbender.utils.param.ParamUtils;
import org.broadinstitute.hellbender.utils.variant.GATKVCFConstants;
Expand Down Expand Up @@ -111,6 +112,7 @@ public final class FilterMutectCalls extends MultiplePassVariantWalker {

@Override
public void onTraversalStart() {
Utils.resetRandomGenerator();
final VCFHeader inputHeader = getHeaderForVariants();
final Set<VCFHeaderLine> headerLines = inputHeader.getMetaDataInSortedOrder().stream()
.filter(line -> !line.getKey().equals(FILTERING_STATUS_VCF_KEY)) //remove header line from Mutect2 stating that calls are unfiltered.
Expand Down

0 comments on commit 917c8eb

Please sign in to comment.