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

Added a apply function

parent dde4c848
No related branches found
No related tags found
No related merge requests found
package nl.lumc.sasc.biopet.pipelines.bamtobigwig
import java.io.File
import nl.lumc.sasc.biopet.core.config.Configurable
import nl.lumc.sasc.biopet.core.{ BiopetQScript, PipelineCommand }
import nl.lumc.sasc.biopet.extensions.WigToBigWig
......@@ -41,4 +43,13 @@ class Bam2Wig(val root: Configurable) extends QScript with BiopetQScript {
}
}
object Bam2Wig extends PipelineCommand
\ No newline at end of file
object Bam2Wig extends PipelineCommand {
def apply(root: Configurable, bamFile: File): Bam2Wig = {
val bamToBigWig = new Bam2Wig(root)
bamToBigWig.outputDir = bamFile.getParent
bamToBigWig.bamFile = bamFile
bamToBigWig.init()
bamToBigWig.biopetScript()
bamToBigWig
}
}
\ No newline at end of file
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