Skip to content
Snippets Groups Projects
Commit 219ead09 authored by bow's avatar bow
Browse files

Update test for fragments_per_gene mode

parent 1c953ac1
No related branches found
No related tags found
No related merge requests found
......@@ -109,11 +109,14 @@ class GentrapTest extends TestNGSuite with Matchers {
gentrap.script()
val functions = gentrap.functions.groupBy(_.getClass)
val numSamples = sampleConfig("samples").size
val numLibPerSample = sampleConfig("samples").values.toSeq.head("libraries").size
functions(classOf[Gsnap]).size should be >= 1
if (expMeasures.contains(FragmentsPerGene)) {
functions(classOf[HtseqCount]).size shouldBe sampleConfig("samples").size
if (expMeasures.contains("fragments_per_gene")) {
gentrap.functions
.collect { case x: HtseqCount => x.output.toString.endsWith(".fragments_per_gene") }.size shouldBe numSamples
}
}
......
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