Commit 917ed16d authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix on bamADfilter

parent 4355447e
......@@ -111,7 +111,7 @@ object VcfFilter extends ToolCommand {
if (record.getAttributeAsInt("DP", -1) >= commandArgs.minTotalDepth &&
genotypes.count(_ == true) >= commandArgs.minSamplesPass &&
bamADvalues.count(_ == true) >= commandArgs.minSamplesPass)
(commandArgs.minBamAlternateDepth <= 0 || bamADvalues.count(_ == true) >= commandArgs.minSamplesPass))
writer.add(record)
}
reader.close
......
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