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
|
|
@ -230,7 +230,7 @@ public class GenerateVariantClustersWalker extends RodWalker<ExpandingArrayList<
|
|||
final VariantDataManager dataManager = new VariantDataManager( reduceSum, annotationKeys );
|
||||
reduceSum.clear(); // Don't need this ever again, clean up some memory
|
||||
|
||||
logger.info( "There are " + dataManager.numVariants + " variants with >0 clustering weight and " + dataManager.numAnnotations + " annotations." );
|
||||
logger.info( "There are " + dataManager.numVariants + " variants with > 0 clustering weight and " + dataManager.numAnnotations + " annotations." );
|
||||
logger.info( "The annotations are: " + annotationKeys );
|
||||
|
||||
dataManager.normalizeData(); // Each data point is now [ (x - mean) / standard deviation ]
|
||||
|
|
|
|||
|
|
@ -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