Skip to content
Snippets Groups Projects
Commit a30614f7 authored by bow's avatar bow
Browse files

Check that gene and/or exon output is set for base count aggregation script

parent a7905322
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,12 @@ class AggrBaseCount(val root: Configurable) extends RScriptCommandLineFunction {
@Output(doc = "Exon level count file", required = false)
var outputExonLevelCount: File = null
override def beforeGraph: Unit = {
require(outputExonLevelCount != null || outputGeneLevelCount != null,
"Either output exon and/or output gene must be set")
}
def cmdLine = {
// TODO: how to check that at least -G or -E is set?
RScriptCommand +
required("-I", inputRawCounts.mkString(":")) +
required("-N", inputLabels.mkString(":")) +
......
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