diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/SimpleIndelCalculationModel.java b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/SimpleIndelCalculationModel.java index b4ad9b7c4..7750ebdf1 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/SimpleIndelCalculationModel.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/SimpleIndelCalculationModel.java @@ -69,7 +69,7 @@ public class SimpleIndelCalculationModel extends GenotypeCalculationModel { if ( bestEvent.charAt(0) == '-' ) { alleles.add( Allele.create(Allele.NULL_ALLELE_STRING,false) ); alleles.add( Allele.create(bestEvent.substring(1), true )); - loc = GenomeLocParser.setStop(loc, loc.getStop() + bestEvent.length()-2); + loc = GenomeLocParser.setStop(loc, loc.getStop() + bestEvent.length()-1); } else throw new StingException("Internal error (probably a bug): event does not conform to expected format: "+ bestEvent); } @@ -78,6 +78,7 @@ public class SimpleIndelCalculationModel extends GenotypeCalculationModel { -1.0 /* log error */, null /* filters */, null /* attributes */); vcc = new VariantCallContext(vc,true); + vcc.setRefBase(ref[0]); /* if ( totalIndels > 0 ) { System.out.println("Calling: "+bestEvent+" ["+bestIndelCount+"/"+totalIndels+"/"+totalCoverage+"] at "+loc); 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 15a763bfc..7c9e74939 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/UnifiedGenotyper.java @@ -34,7 +34,6 @@ import org.broadinstitute.sting.gatk.walkers.annotator.VariantAnnotatorEngine; import org.broadinstitute.sting.utils.*; import org.broadinstitute.sting.commandline.*; import org.broadinstitute.sting.utils.vcf.VCFUtils; -import org.broadinstitute.sting.utils.genotype.*; import org.broadinstitute.sting.utils.genotype.vcf.*; import java.util.*;