Commit 243fd59a authored by bow's avatar bow
Browse files

Set default validation stringency to lenient in WipeReads

parent 634364dd
......@@ -165,6 +165,7 @@ object WipeReads extends MainCommand {
new SAMFileReader(inBAM, inBAMIndex)
else {
val sfr = new SAMFileReader(inBAM)
sfr.setValidationStringency(SAMFileReader.ValidationStringency.LENIENT)
if (!sfr.hasIndex)
throw new IllegalStateException("Input BAM file must be indexed")
else
......@@ -312,6 +313,7 @@ object WipeReads extends MainCommand {
.setCreateIndex(writeIndex)
.setUseAsyncIo(async)
val templateBAM = new SAMFileReader(inBAM)
templateBAM.setValidationStringency(SAMFileReader.ValidationStringency.LENIENT)
val targetBAM = factory.makeBAMWriter(templateBAM.getFileHeader, true, outBAM)
val filteredBAM =
if (filteredOutBAM != null)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment