Skip to content
Snippets Groups Projects
Commit f5f2787f authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixed bug in vcffilter

parent 3cc33596
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment