diff --git a/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/seqtk/Seqtk.scala b/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/seqtk/Seqtk.scala index 8684c7a0cd73b27028d273164e5ced030d052b4e..6fbc166ab40c81a788fd3adee8b73be027f325ac 100644 --- a/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/seqtk/Seqtk.scala +++ b/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/seqtk/Seqtk.scala @@ -4,7 +4,7 @@ * @author Wibowo Arindrarto */ -package nl.lumc.sasc.biopet.function.seqtk +package nl.lumc.sasc.biopet.extensions.seqtk import nl.lumc.sasc.biopet.core.BiopetCommandLineFunction diff --git a/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/seqtk/SeqtkSeq.scala b/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/seqtk/SeqtkSeq.scala index 1bd2426a06e6158a1edb05aab21d3cc4e4110904..ef908ea13be1745ec4fb62e0a248c7543300659b 100644 --- a/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/seqtk/SeqtkSeq.scala +++ b/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/seqtk/SeqtkSeq.scala @@ -4,7 +4,7 @@ * @author Wibowo Arindrarto */ -package nl.lumc.sasc.biopet.function.seqtk +package nl.lumc.sasc.biopet.extensions.seqtk import java.io.File import org.broadinstitute.gatk.utils.commandline.{ Input, Output } diff --git a/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/SeqtkSeq.scala b/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/SeqtkSeq.scala new file mode 100644 index 0000000000000000000000000000000000000000..4d70cd4dafed0d9dda5dd7a99bc01bb57afb2f6c --- /dev/null +++ b/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/SeqtkSeq.scala @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package nl.lumc.sasc.biopet.pipelines.flexiprep + +import nl.lumc.sasc.biopet.core.config.Configurable +import nl.lumc.sasc.biopet.extensions.Ln + +class SeqtkSeq(root: Configurable) extends nl.lumc.sasc.biopet.extensions.seqtk.SeqtkSeq(root) { + var fastqc: Fastqc = _ + + override def beforeCmd { + super.beforeCmd + if (fastqc != null && Q == None) { + Q = fastqc.getEncoding match { + case null => None + case s if (s.contains("Sanger / Illumina 1.9")) => None + case s if (s.contains("Illumina <1.3")) => Option(64) + case s if (s.contains("Illumina 1.3")) => Option(64) + case s if (s.contains("Illumina 1.5")) => Option(64) + } + if (Q != None) V = true + } + } + + override def cmdLine = { + if (Q != None) { + analysisName = getClass.getName + super.cmdLine + } else { + analysisName = getClass.getSimpleName + "-ln" + Ln(this, input, output).cmd + } + } +}