diff --git a/src/main/java/genepi/imputationserver/steps/fastqc/StatisticsTask.java b/src/main/java/genepi/imputationserver/steps/fastqc/StatisticsTask.java index 6dc9418c..635cee05 100644 --- a/src/main/java/genepi/imputationserver/steps/fastqc/StatisticsTask.java +++ b/src/main/java/genepi/imputationserver/steps/fastqc/StatisticsTask.java @@ -661,7 +661,7 @@ public List prepareChrX(String filename, boolean phased, LineWriter chrX vcfChunkWriterNonPar.writeHeader(header); vcfChunkWriterPar1.writeHeader(header); vcfChunkWriterPar2.writeHeader(header); - + int mixedGenotypes[] = null; int count = 0; @@ -673,7 +673,6 @@ public List prepareChrX(String filename, boolean phased, LineWriter chrX nonParEnd = 155701383; } - VCFCodec codec = new VCFCodec(); codec.setVCFHeader(vcfReader.getFileHeader(), VCFHeaderVersion.VCF4_1); LineReader reader = new LineReader(filename); @@ -696,7 +695,7 @@ public List prepareChrX(String filename, boolean phased, LineWriter chrX continue; } - //now decode, since it's valid + // now decode, since it's a valid VCF VariantContext line = codec.decode(lineString); if (line.getContig().equals("23")) { diff --git a/src/test/java/genepi/imputationserver/steps/FastQualityControlTest.java b/src/test/java/genepi/imputationserver/steps/FastQualityControlTest.java index 7061fa74..7dc814ce 100644 --- a/src/test/java/genepi/imputationserver/steps/FastQualityControlTest.java +++ b/src/test/java/genepi/imputationserver/steps/FastQualityControlTest.java @@ -371,7 +371,10 @@ public void testChrXInvalidAlleles() throws IOException, ZipException { FastQualityControlMock qcStats = new FastQualityControlMock(configFolder); boolean result = run(context, qcStats); - //FileUtil.deleteDirectory(file); + assertTrue(result); + assertTrue(context.hasInMemory("Invalid alleles: 190")); + + FileUtil.deleteDirectory(file); }