SAMFileReader reader = new SAMFileReader(new File(input));
reader.setValidationStringency(ValidationStringency.SILENT);
int[] counts = new int[thresholds.length];
System.err.println(region.getDescriptor());
Iterator<SAMRecord> iter = reader.queryOverlapping(region.getSeqname(), (int) region.getStart(), (int) region.getEnd());
while (iter.hasNext()) {
SAMRecord read = iter.next();
if (!read.getReadUnmappedFlag()) {
for (int i=0; i<thresholds.length; i++) {
if (read.getMappingQuality() <= thresholds[i]) {