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

Fix compile error

parent 0e6920a2
......@@ -259,7 +259,7 @@ object VcfFilter extends ToolCommand {
/** Checks if all samples are a variant */
def allSamplesVariant(record: VariantContext): Boolean = {
record.getGenotypes.forall(g=> !g.isNonInformative && g.getAlleles.exists(a => a.isNonReference && !a.isNoCall))
record.getGenotypes.forall(g => !g.isNonInformative && g.getAlleles.exists(a => a.isNonReference && !a.isNoCall))
}
/** returns true when DP INFO field is atleast the given value */
......
......@@ -77,7 +77,7 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers {
"--mustHaveGenotype", "Sample_101:HET")
main(arguments)
val size = new VCFFileReader(new File(tmpPath), false).size
val size = new VCFFileReader(tmp, false).size
size shouldBe 1
val tmp2 = File.createTempFile("VcfFilter", ".vcf.gz")
......
Markdown is supported
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