Skip to content
Snippets Groups Projects
Commit d50b72d0 authored by Sander Bollen's avatar Sander Bollen
Browse files

some more tests for BastyGenerateFasta

parent 23f8d8aa
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,30 @@ class BastyGenerateFastaTest extends TestNGSuite with MockitoSugar with Matchers
val vepped_path = resourcePath("/VEP_oneline.vcf")
val vepped = new File(vepped_path)
val bam_path = resourcePath("/paired01.bam")
val chrQ_path = resourcePath("/chrQ.vcf.gz")
val chrQRef_path = resourcePath("/fake_chrQ.fa")
val bam = new File(resourcePath("/paired01.bam"))
val chrQ = new File(resourcePath("/chrQ.vcf.gz"))
val chrQRef = new File(resourcePath("/fake_chrQ.fa"))
@Test def testMainVcf = {
val tmp = File.createTempFile("basty_out", ".fa")
val tmppath = tmp.getAbsolutePath
tmp.deleteOnExit()
val arguments = Array("-V", chrQ_path, "--outputVariants", tmppath, "--sampleName", "Child_7006504", "--reference", chrQRef_path, "--outputName", "test")
main(arguments)
}
@Test def testMainVcfAndBam = {
val tmp = File.createTempFile("basty_out", ".fa")
val tmppath = tmp.getAbsolutePath
tmp.deleteOnExit()
val arguments = Array("-V", chrQ_path, "--outputVariants", tmppath, "--bamFile", bam_path, "--sampleName", "Child_7006504", "--reference", chrQRef_path, "--outputName", "test")
main(arguments)
}
@Test def testGetMaxAllele = {
val reader = new VCFFileReader(vepped, false)
......
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