Skip to content

Commit

Permalink
Add chr23 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
seppinho committed Nov 27, 2023
1 parent fc5ccd0 commit 76a4a51
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -627,4 +627,38 @@ nextflow_pipeline {
}

}

test("Should run with phased chr23 data and hg38") {

when {
params {
project = "testChr23PipelinePhased"
build = "hg19"
files = "$projectDir/tests/data/input/chr23-phased/*.vcf.gz"
population = "eur"
password = PASSWORD
refpanel_yaml = "$projectDir/tests/data/refpanels/hapmap-chrX-hg38/cloudgene.yaml"
output = "${outputDir}"
phasing = "no_phasing"
}
}

then {
assert workflow.success

def imputed_chr_X = file("${outputDir}/chr_X.zip");
assert imputed_chr_X.exists()
ZipFile zipFile = new ZipFile(imputed_chr_X, PASSWORD.toCharArray());
zipFile.extractAll("${outputDir}");

def file = path("${outputDir}/chrX.dose.vcf.gz").vcf
assert file.getChromosome() == "X"
assert file.getNoSamples() == 26
assert file.isPhased()

assert TOTAL_REFPANEL_CHRX_B38 == file.getNoSnps()

}

}
}

0 comments on commit 76a4a51

Please sign in to comment.