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

VcfWithVcfTest stub

parent a5d7ff21
No related branches found
No related tags found
No related merge requests found
package nl.lumc.sasc.biopet.tools
import java.nio.file.Paths
import org.scalatest.Matchers
import org.scalatest.mock.MockitoSugar
import org.scalatest.testng.TestNGSuite
import scala.util.Random
/**
* Created by ahbbollen on 10-4-15.
*/
class VcfWithVcfTest extends TestNGSuite with MockitoSugar with Matchers {
import VcfWithVcf._
private def resourcePath(p: String): String = {
Paths.get(getClass.getResource(p).toURI).toString
}
val vepped_path = resourcePath("/VEP_oneline.vcf")
val unvepped_path = resourcePath("/unvepped.vcf")
val rand = new Random()
def testOutputTypeVcf() = {
val tmp_path = "/tmp_VcfWithVcf_" + rand.nextString(10) + ".vcf"
val arguments = Array("-I", unvepped_path, "-S", vepped_path, "-O", tmp_path, "-f", "CSQ")
main(arguments)
}
def testOutputTypeVcfGz() = {
val tmp_path = "/tmp_VcfWithVcf_" + rand.nextString(10) + ".vcf.gz"
val arguments = Array("-I", unvepped_path, "-S", vepped_path, "-O", tmp_path, "-f", "CSQ")
main(arguments)
}
def testOutputTypeBcf() = {
val tmp_path = "/tmp_VcfWithVcf_" + rand.nextString(10) + ".bcf"
val arguments = Array("-I", unvepped_path, "-S", vepped_path, "-O", tmp_path, "-f", "CSQ")
main(arguments)
}
}
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