final SAMFileReader samReader = new SAMFileReader(INPUT);
if (!samReader.isBinary()) VALIDATE_INDEX=false;
if (VALIDATE_INDEX){
samReader.enableIndexCaching(true);
}
samReader.enableCrcChecking(true);
final SamFileValidator validator = new SamFileValidator(out, MAX_OPEN_TEMP_FILES);
validator.setErrorsToIgnore(IGNORE);
if (IGNORE_WARNINGS) {