Skip to content
Snippets Groups Projects
Commit cf7fdabf authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

added outputDir possibility

parent 64eead1e
No related branches found
No related tags found
1 merge request!71Add gffcompare
...@@ -2,9 +2,13 @@ version 1.0 ...@@ -2,9 +2,13 @@ version 1.0
task GffCompare { task GffCompare {
input { input {
String? preCommand
File? inputGtfList File? inputGtfList
Array[File]+? inputGtfFiles Array[File]+? inputGtfFiles
File referenceAnnotation File referenceAnnotation
String? outputDir
String outPrefix = "gffcmp" # gffcmp is the default used by the program as well. This needs to be
# defined in order for the output values to be consistent and correct.
File? genomeSequences File? genomeSequences
Int? maxDistanceFreeEndsTerminalExons Int? maxDistanceFreeEndsTerminalExons
Int? maxDistanceGroupingTranscriptStartSites Int? maxDistanceGroupingTranscriptStartSites
...@@ -21,12 +25,19 @@ task GffCompare { ...@@ -21,12 +25,19 @@ task GffCompare {
Boolean verbose = false Boolean verbose = false
Boolean debugMode = false Boolean debugMode = false
} }
# This allows for the creation of output directories"
String dirPrefix= if defined(outputDir) then outputDir + "/" else ""
String totalPrefix = dirPrefix + outPrefix
parameter_meta {} parameter_meta {}
command { command {
set -e
~{preCommand}
~{"mkdir -p " + outputDir}
gffcompare \ gffcompare \
-r ~{referenceAnnotation} \ -r ~{referenceAnnotation} \
~{"-o " + totalPrefix } \
~{"-s " + genomeSequences} \ ~{"-s " + genomeSequences} \
~{"-e " + maxDistanceFreeEndsTerminalExons} \ ~{"-e " + maxDistanceFreeEndsTerminalExons} \
~{"-d " + maxDistanceGroupingTranscriptStartSites} \ ~{"-d " + maxDistanceGroupingTranscriptStartSites} \
......
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