diff --git a/public/biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/VcfFilter.scala b/public/biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/VcfFilter.scala index d08b05c534896b33324297dde94d386bc2c863c7..bc91cfc044cb0982d14e00b7a15a1b79a2045919 100644 --- a/public/biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/VcfFilter.scala +++ b/public/biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/VcfFilter.scala @@ -276,8 +276,10 @@ object VcfFilter extends ToolCommand { * @return */ def minGenomeQuality(record: VariantContext, minGQ: Int, minSamplesPass: Int = 1): Boolean = { - record.getGenotypes.count(x => if (!x.hasGQ) false - else if (x.getGQ >= minGQ) true else false) >= minSamplesPass + record.getGenotypes.count(x => + if (minGQ == 0) true + else if (!x.hasGQ) false + else if (x.getGQ >= minGQ) true else false) >= minSamplesPass } /**