From b101b9c30bd4ee906bf93b3a3cac767a2d6c703a Mon Sep 17 00:00:00 2001 From: Joel Thibault Date: Thu, 12 Apr 2012 13:35:20 -0400 Subject: [PATCH] Add Mongo switch --- .../sting/gatk/walkers/variantutils/SelectVariants.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/SelectVariants.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/SelectVariants.java index ef581d15c..b71ab1983 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/SelectVariants.java +++ b/public/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/SelectVariants.java @@ -352,6 +352,8 @@ public class SelectVariants extends RodWalker implements TreeR private Set IDsToKeep = null; + private final static boolean mongoOn = false; + /** * Set up the VCF writer, the sample expressions and regexs, and the JEXL matcher */ @@ -466,8 +468,7 @@ public class SelectVariants extends RodWalker implements TreeR if ( tracker == null ) return 0; - //Collection vcs = tracker.getValues(variantCollection.variants, context.getLocation()); - Collection vcs = getMongoVariants(ref, context.getLocation()); + Collection vcs = mongoOn ? getMongoVariants(ref, context.getLocation()) : tracker.getValues(variantCollection.variants, context.getLocation()); if ( vcs == null || vcs.size() == 0) { return 0;