Skip to content
Snippets Groups Projects
Commit 9cae1c11 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Gentrap test are now divided over 7 threads

parent f8785ed4
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ import org.scalatest.Matchers ...@@ -28,7 +28,7 @@ import org.scalatest.Matchers
import org.scalatest.testng.TestNGSuite import org.scalatest.testng.TestNGSuite
import org.testng.annotations.{ AfterClass, DataProvider, Test } import org.testng.annotations.{ AfterClass, DataProvider, Test }
class GentrapTest extends TestNGSuite with Matchers { abstract class GentrapTestAbstract(val expressionMeasure: String) extends TestNGSuite with Matchers {
def initPipeline(map: Map[String, Any]): Gentrap = { def initPipeline(map: Map[String, Any]): Gentrap = {
new Gentrap() { new Gentrap() {
...@@ -70,7 +70,7 @@ class GentrapTest extends TestNGSuite with Matchers { ...@@ -70,7 +70,7 @@ class GentrapTest extends TestNGSuite with Matchers {
.toMap .toMap
) )
private lazy val validExpressionMeasures = Set( val validExpressionMeasures = Set(
"fragments_per_gene", "fragments_per_exon", "bases_per_gene", "bases_per_exon", "fragments_per_gene", "fragments_per_exon", "bases_per_gene", "bases_per_exon",
"cufflinks_strict", "cufflinks_guided", "cufflinks_blind") "cufflinks_strict", "cufflinks_guided", "cufflinks_blind")
...@@ -96,7 +96,7 @@ class GentrapTest extends TestNGSuite with Matchers { ...@@ -96,7 +96,7 @@ class GentrapTest extends TestNGSuite with Matchers {
for { for {
sampleConfig <- sampleConfigs.toArray sampleConfig <- sampleConfigs.toArray
expressionMeasure <- expressionMeasures //expressionMeasure <- expressionMeasures
strandProtocol <- strandProtocols strandProtocol <- strandProtocols
} yield Array(sampleConfig, List(expressionMeasure), strandProtocol) } yield Array(sampleConfig, List(expressionMeasure), strandProtocol)
} }
...@@ -175,6 +175,14 @@ class GentrapTest extends TestNGSuite with Matchers { ...@@ -175,6 +175,14 @@ class GentrapTest extends TestNGSuite with Matchers {
} }
} }
class GentrapFragmentsPerGeneTest extends GentrapTestAbstract("fragments_per_gene")
class GentrapFragmentsPerExonTest extends GentrapTestAbstract("fragments_per_exon")
class GentrapBasesPerGeneTest extends GentrapTestAbstract("bases_per_gene")
class GentrapBasesPerExonTest extends GentrapTestAbstract("bases_per_exon")
class GentrapCufflinksStrictTest extends GentrapTestAbstract("cufflinks_strict")
class GentrapCufflinksGuidedTest extends GentrapTestAbstract("cufflinks_guided")
class GentrapCufflinksBlindTest extends GentrapTestAbstract("cufflinks_blind")
object GentrapTest { object GentrapTest {
val outputDir = Files.createTempDir() val outputDir = Files.createTempDir()
new File(outputDir, "input").mkdirs() new File(outputDir, "input").mkdirs()
......
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