Skip to content
Snippets Groups Projects
Commit 9db6c09d authored by Wai Yi Leung's avatar Wai Yi Leung
Browse files

Fix major error, things in beforeCmd was intended to do in beforeGraph

parent de250d3f
No related branches found
No related tags found
No related merge requests found
......@@ -104,19 +104,19 @@ class PindelCaller(val root: Configurable) extends BiopetCommandLineFunction wit
var MIN_DD_MAP_DISTANCE: Option[Int] = config("MIN_DD_MAP_DISTANCE")
var DD_REPORT_DUPLICATION_READS: Option[Int] = config("DD_REPORT_DUPLICATION_READS")
override def beforeCmd(): Unit = {
override def beforeGraph: Unit = {
// we should check whether the `pindel-config-file` is set or the `config-file` for the bam-list
// at least one of them should be set.
(pindel_file, config_file) match {
case (None, None) => Logging.addError("No pindel config is given")
case (Some(a), Some(b)) => Logging.addError(s"Please specify either a pindel config or bam-config. Not both for Pindel: $a or $b")
case (Some(a), None) => {
Logging.logger.info(s"Using $pindel_file as pindel config for Pindel")
input = a
Logging.logger.info(s"Using '${a}' as pindel config for Pindel")
input = a.getAbsoluteFile
}
case (None, Some(b)) => {
Logging.logger.info(s"Using $config_file as bam config for Pindel")
input = b
Logging.logger.info(s"Using '${b}' as bam config for Pindel")
input = b.getAbsoluteFile
}
}
}
......
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