diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/BatchedCallsMerger.java b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/BatchedCallsMerger.java index 0c22bb6f3..17db761eb 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/BatchedCallsMerger.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/BatchedCallsMerger.java @@ -71,7 +71,7 @@ public class BatchedCallsMerger extends LocusWalker imp public boolean includeReadsWithDeletionAtLoci() { return true; } // enable extended events for indels - public boolean generateExtendedEvents() { return UAC.genotypeModel == GenotypeCalculationModel.Model.INDELS; } + public boolean generateExtendedEvents() { return UAC.genotypeModel == GenotypeCalculationModel.Model.DINDEL; } public void initialize() { diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/DiploidGenotypeCalculationModel.java b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/DiploidGenotypeCalculationModel.java index f0e4b1683..571cdff55 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/DiploidGenotypeCalculationModel.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/DiploidGenotypeCalculationModel.java @@ -37,14 +37,8 @@ import org.broadinstitute.sting.gatk.contexts.StratifiedAlignmentContext; import java.util.*; public class DiploidGenotypeCalculationModel extends JointEstimateGenotypeCalculationModel { - /** - * Should we enable the experimental genotype likelihood calculations? - */ - protected boolean useExptGenotypeLikelihoods = false; - protected DiploidGenotypeCalculationModel(boolean useExptGenotypeLikelihoods) { - this.useExptGenotypeLikelihoods = useExptGenotypeLikelihoods; - } + protected DiploidGenotypeCalculationModel() {} // the GenotypeLikelihoods map private HashMap GLs = new HashMap(); diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/GenotypeCalculationModel.java b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/GenotypeCalculationModel.java index c3208031a..65b194c45 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/GenotypeCalculationModel.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/GenotypeCalculationModel.java @@ -21,8 +21,7 @@ public abstract class GenotypeCalculationModel implements Cloneable { public enum Model { JOINT_ESTIMATE, - JOINT_ESTIMATE_EXPT_GL, - INDELS + DINDEL } protected UnifiedArgumentCollection UAC; diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/GenotypeCalculationModelFactory.java b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/GenotypeCalculationModelFactory.java index 238b0bcb3..79fef9aac 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/GenotypeCalculationModelFactory.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/GenotypeCalculationModelFactory.java @@ -55,14 +55,13 @@ public class GenotypeCalculationModelFactory { GenotypeCalculationModel gcm; switch ( UAC.genotypeModel ) { case JOINT_ESTIMATE: - case JOINT_ESTIMATE_EXPT_GL: - boolean useExptGenotypeLikelihoods = UAC.genotypeModel == JOINT_ESTIMATE_EXPT_GL; - gcm = new DiploidGenotypeCalculationModel(useExptGenotypeLikelihoods); + gcm = new DiploidGenotypeCalculationModel(); break; - case INDELS: - gcm = new SimpleIndelCalculationModel(); - break; - default: throw new RuntimeException("Unexpected GenotypeCalculationModel " + UAC.genotypeModel); + case DINDEL: + throw new UnsupportedOperationException("The Dindel-based genotype likelihoods model is not currently supported"); + //gcm = new SimpleIndelCalculationModel(); + //break; + default: throw new IllegalArgumentException("Unexpected GenotypeCalculationModel " + UAC.genotypeModel); } gcm.initialize(samples, logger, UAC, verboseWriter); diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java index fb7c72fa2..2663a8999 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java @@ -37,8 +37,6 @@ import org.broadinstitute.sting.utils.vcf.VCFUtils; import java.util.*; import java.io.PrintStream; -import java.io.File; -import java.io.FileNotFoundException; /** @@ -85,7 +83,7 @@ public class UnifiedGenotyper extends LocusWalker UAC.MAX_DELETION_FRACTION ) return null;