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

dockerify gffread

parent ca35e74a
No related branches found
No related tags found
1 merge request!94Containerize gffread and cpat
...@@ -2,7 +2,6 @@ version 1.0 ...@@ -2,7 +2,6 @@ version 1.0
task GffRead { task GffRead {
input { input {
String? preCommand
File inputGff File inputGff
File genomicSequence File genomicSequence
File? genomicIndex # Optional. GFFRead can create this by itself. File? genomicIndex # Optional. GFFRead can create this by itself.
...@@ -11,6 +10,7 @@ task GffRead { ...@@ -11,6 +10,7 @@ task GffRead {
String? proteinFastaPath String? proteinFastaPath
String? filteredGffPath String? filteredGffPath
Boolean outputGtfFormat = false Boolean outputGtfFormat = false
String dockerTag = "0.9.12--0"
} }
# The mkdirs below are hackish. it should be # The mkdirs below are hackish. it should be
...@@ -18,7 +18,6 @@ task GffRead { ...@@ -18,7 +18,6 @@ task GffRead {
# but this goes wrong. Cromwell will always use ')' even if somepath is not defined. Which leads to crashing. # but this goes wrong. Cromwell will always use ')' even if somepath is not defined. Which leads to crashing.
command { command {
set -e -o pipefail set -e -o pipefail
~{preCommand}
~{"mkdir -p $(dirname " + CDSFastaPath}~{true=")" false="" defined(CDSFastaPath)} ~{"mkdir -p $(dirname " + CDSFastaPath}~{true=")" false="" defined(CDSFastaPath)}
~{"mkdir -p $(dirname " + exonsFastaPath}~{true=")" false="" defined(exonsFastaPath)} ~{"mkdir -p $(dirname " + exonsFastaPath}~{true=")" false="" defined(exonsFastaPath)}
~{"mkdir -p $(dirname " + proteinFastaPath}~{true=")" false="" defined(proteinFastaPath)} ~{"mkdir -p $(dirname " + proteinFastaPath}~{true=")" false="" defined(proteinFastaPath)}
...@@ -26,11 +25,11 @@ task GffRead { ...@@ -26,11 +25,11 @@ task GffRead {
gffread \ gffread \
~{inputGff} \ ~{inputGff} \
-g ~{genomicSequence} \ -g ~{genomicSequence} \
${"-w " + exonsFastaPath} \ ~{"-w " + exonsFastaPath} \
${"-x " + CDSFastaPath} \ ~{"-x " + CDSFastaPath} \
${"-y " + proteinFastaPath} \ ~{"-y " + proteinFastaPath} \
${"-o " + filteredGffPath} \ ~{"-o " + filteredGffPath} \
${true="-T " false="" outputGtfFormat} ~{true="-T " false="" outputGtfFormat}
} }
output { output {
...@@ -39,4 +38,8 @@ task GffRead { ...@@ -39,4 +38,8 @@ task GffRead {
File? proteinFasta = proteinFastaPath File? proteinFasta = proteinFastaPath
File? filteredGff = filteredGffPath File? filteredGff = filteredGffPath
} }
runtime {
docker: "quay.io/biocontainers/gffread:" + dockerTag
}
} }
\ No newline at end of file
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