From b745c2f8d7ce1c331adb0ee81c019fea815481f4 Mon Sep 17 00:00:00 2001 From: ebanks Date: Wed, 6 Jan 2010 15:37:06 +0000 Subject: [PATCH] Fix for Jared: don't blow up if there are no samples in the input (since that's allowed) - but warn the user just in case. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2518 348d0f76-0448-11de-a6fe-93d51630548a --- .../sting/gatk/walkers/annotator/VariantAnnotator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java b/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java index 13852751a..b7af1d418 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotator.java @@ -91,9 +91,9 @@ public class VariantAnnotator extends RodWalker { samples.add(sampleName.toUpperCase()); } - // if there are no valid samples, die + // if there are no valid samples, warn the user if ( samples.size() == 0 ) - throw new StingException("There are no samples input at all; use the --sampleName argument to specify one"); + logger.warn("There are no samples input at all; use the --sampleName argument to specify one if desired."); determineAllAnnotations();