This should be a User Error since it's provided from the DoC command-line arguments

This commit is contained in:
Eric Banks 2012-04-18 13:09:23 -04:00
parent 392f1903f7
commit d3c84e7b1f
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package org.broadinstitute.sting.gatk.walkers.coverage;
import org.broadinstitute.sting.utils.BaseUtils;
import org.broadinstitute.sting.utils.exceptions.UserException;
import java.util.HashMap;
import java.util.Map;
@ -45,8 +46,7 @@ public class DepthOfCoverageStats {
public static int[] calculateBinEndpoints(int lower, int upper, int bins) {
if ( bins > upper - lower || lower < 1 ) {
throw new IllegalArgumentException("Illegal argument to calculateBinEndpoints; "+
"lower bound must be at least 1, and number of bins may not exceed stop - start");
throw new UserException.BadInput("the start must be at least 1 and the number of bins may not exceed stop - start");
}
int[] binLeftEndpoints = new int[bins+1];