Commit a1f807a5 authored by Peter van 't Hof's avatar Peter van 't Hof

Run after graph after script

parent 52cc9aaf
......@@ -29,10 +29,10 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
@Argument(doc = "Executable")
var executable: String = _
protected def beforeCmd {
protected[core] def beforeCmd {
}
protected def afterGraph {
protected[core] def afterGraph {
}
override def freezeFieldValues() {
......
......@@ -22,11 +22,17 @@ trait BiopetQScript extends Configurable {
def init
def biopetScript
var functions: Seq[QFunction]
final def script() {
for (file <- configfiles) globalConfig.loadConfigFile(file)
if (!outputDir.endsWith("/")) outputDir += "/"
init
biopetScript
for (function <- functions) function match {
case f:BiopetCommandLineFunctionTrait => f.afterGraph
case _ =>
}
val configReport = globalConfig.getReport
val configReportFile = new File(outputDir + qSettings.runName + ".configreport.txt")
configReportFile.getParentFile.mkdir
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment