diff --git a/flexiprep/src/test/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/FastqcV0101Test.scala b/flexiprep/src/test/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/FastqcV0101Test.scala index 4cb68fdfc44d5a30c3ed76aabc9570d6f62529f3..01d81fe144bb02f22fee90f9c3c11e1c1f267d29 100644 --- a/flexiprep/src/test/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/FastqcV0101Test.scala +++ b/flexiprep/src/test/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/FastqcV0101Test.scala @@ -73,11 +73,15 @@ class FastqcV0101Test extends TestNGSuite with Matchers { fqc.contaminants = Option(resourceFile("fqc_contaminants_v0101.txt")) // found adapters also contain the adapters in reverse complement (done within flexiprep/fastqc only) val adapters = fqc.foundAdapters - // we find 1 adapter which comes with the Reverse Complement counterpart - adapters.size shouldBe 2 - adapters.head.name shouldEqual "TruSeq Adapter, Index 1_RC" - adapters.head.seq shouldEqual "CAAGCAGAAGACGGCATACGAGATCGTGATGTGACTGGAGTTCAGACGTGTGCTCTTCCGATC" + if (fqc.enableRCtrimming) { + // we find 1 adapter which comes with the Reverse Complement counterpart + adapters.size shouldBe 2 + adapters.head.name shouldEqual "TruSeq Adapter, Index 1_RC" + adapters.head.seq shouldEqual "CAAGCAGAAGACGGCATACGAGATCGTGATGTGACTGGAGTTCAGACGTGTGCTCTTCCGATC" + } else { + adapters.size shouldBe 1 + } adapters.last.name shouldEqual "TruSeq Adapter, Index 1" adapters.last.seq shouldEqual "GATCGGAAGAGCACACGTCTGAACTCCAGTCACATCACGATCTCGTATGCCGTCTTCTGCTTG"