Don't generate PDF unless you have -run specified

This commit is contained in:
Mark DePristo 2011-11-09 14:45:40 -05:00
parent 29df96a77b
commit 0111e58d4e
1 changed files with 5 additions and 3 deletions

View File

@ -129,9 +129,11 @@ class QCommandLine extends CommandLineProgram with Logging {
logger.info("Writing JobLogging GATKReport to file " + reportFile)
QJobReport.printReport(qGraph.getFunctionsAndStatus(script.functions), reportFile)
val pdfFile = new File(jobStringName + ".pdf")
logger.info("Plotting JobLogging GATKReport to file " + pdfFile)
QJobReport.plotReport(reportFile, pdfFile)
if ( settings.run ) {
val pdfFile = new File(jobStringName + ".pdf")
logger.info("Plotting JobLogging GATKReport to file " + pdfFile)
QJobReport.plotReport(reportFile, pdfFile)
}
}
}
}