From ae33d8a2f2dee74c1c85265d03c27b3198d36c94 Mon Sep 17 00:00:00 2001 From: ebanks Date: Wed, 30 Jun 2010 14:00:56 +0000 Subject: [PATCH] I just wanted one more vote. It's settled: we die. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3681 348d0f76-0448-11de-a6fe-93d51630548a --- .../sting/gatk/refdata/VariantContextAdaptors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/broadinstitute/sting/gatk/refdata/VariantContextAdaptors.java b/java/src/org/broadinstitute/sting/gatk/refdata/VariantContextAdaptors.java index 2deb6b8e5..667804194 100755 --- a/java/src/org/broadinstitute/sting/gatk/refdata/VariantContextAdaptors.java +++ b/java/src/org/broadinstitute/sting/gatk/refdata/VariantContextAdaptors.java @@ -215,7 +215,7 @@ public class VariantContextAdaptors { } else if ( !vcf.isIndel() ) { refAllele = Allele.create(ref.getBase(), true); if ( (char)ref.getBase() != vcf.getReference().charAt(0) ) - System.err.println("\n*** WARN: The VCF reference base (" + vcf.getReference().charAt(0) + ") doesn't match the actual reference base (" + (char)ref.getBase() + "); there is a good chance this will generate an exception!"); + throw new StingException("The VCF reference base (" + vcf.getReference().charAt(0) + ") doesn't match the actual reference base (" + (char)ref.getBase() + "); please check that you are using the appropriate reference file"); } else if ( vcf.isDeletion() ) { int start = vcf.getPosition() - (int)ref.getWindow().getStart() + 1; int delLength = 0;