Slightly better error message for the common error of only providing a dbsnp track but giving it zero clustering weight.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4114 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
5623e01602
commit
ac58eb3cbb
|
|
@ -53,7 +53,7 @@ public class VariantDataManager {
|
|||
numVariants = dataList.size();
|
||||
data = dataList.toArray( new VariantDatum[numVariants] );
|
||||
if( numVariants <= 0 ) {
|
||||
throw new StingException( "There are zero variants! (or possibly a problem with integer overflow)" );
|
||||
throw new StingException( "There are zero variants with > 0 clustering weight!" );
|
||||
}
|
||||
if( _annotationKeys == null ) {
|
||||
numAnnotations = 0;
|
||||
|
|
@ -62,7 +62,7 @@ public class VariantDataManager {
|
|||
} else {
|
||||
numAnnotations = _annotationKeys.size();
|
||||
if( numAnnotations <= 0 ) {
|
||||
throw new StingException( "There are zero annotations! (or possibly a problem with integer overflow)" );
|
||||
throw new StingException( "There are zero annotations!" );
|
||||
}
|
||||
meanVector = new double[numAnnotations];
|
||||
varianceVector = new double[numAnnotations];
|
||||
|
|
|
|||
Loading…
Reference in New Issue