This should be a User Error since it's provided from the DoC command-line arguments
This commit is contained in:
parent
392f1903f7
commit
d3c84e7b1f
|
|
@ -1,6 +1,7 @@
|
||||||
package org.broadinstitute.sting.gatk.walkers.coverage;
|
package org.broadinstitute.sting.gatk.walkers.coverage;
|
||||||
|
|
||||||
import org.broadinstitute.sting.utils.BaseUtils;
|
import org.broadinstitute.sting.utils.BaseUtils;
|
||||||
|
import org.broadinstitute.sting.utils.exceptions.UserException;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -45,8 +46,7 @@ public class DepthOfCoverageStats {
|
||||||
|
|
||||||
public static int[] calculateBinEndpoints(int lower, int upper, int bins) {
|
public static int[] calculateBinEndpoints(int lower, int upper, int bins) {
|
||||||
if ( bins > upper - lower || lower < 1 ) {
|
if ( bins > upper - lower || lower < 1 ) {
|
||||||
throw new IllegalArgumentException("Illegal argument to calculateBinEndpoints; "+
|
throw new UserException.BadInput("the start must be at least 1 and the number of bins may not exceed stop - start");
|
||||||
"lower bound must be at least 1, and number of bins may not exceed stop - start");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int[] binLeftEndpoints = new int[bins+1];
|
int[] binLeftEndpoints = new int[bins+1];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue