forked from biowdl/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgffread.wdl
More file actions
46 lines (42 loc) · 1.51 KB
/
Copy pathgffread.wdl
File metadata and controls
46 lines (42 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version 1.0
task GffRead {
input {
File inputGff
File genomicSequence
File? genomicIndex # Optional. GFFRead can create this by itself.
String? exonsFastaPath
String? CDSFastaPath
String? proteinFastaPath
String? filteredGffPath
Boolean outputGtfFormat = false
String dockerImage = "quay.io/biocontainers/gffread:0.9.12--0"
}
# The mkdirs below are hackish. It should be
# ~{"mkir -p $(dirname " + somePath + ")"}
# but this goes wrong. Cromwell will always use ')' even if somepath is not defined.
# Which leads to crashing.
command {
set -e
~{"mkdir -p $(dirname " + CDSFastaPath}~{true=")" false="" defined(CDSFastaPath)}
~{"mkdir -p $(dirname " + exonsFastaPath}~{true=")" false="" defined(exonsFastaPath)}
~{"mkdir -p $(dirname " + proteinFastaPath}~{true=")" false="" defined(proteinFastaPath)}
~{"mkdir -p $(dirname " + filteredGffPath}~{true=")" false="" defined(filteredGffPath)}
gffread \
~{inputGff} \
-g ~{genomicSequence} \
~{"-w " + exonsFastaPath} \
~{"-x " + CDSFastaPath} \
~{"-y " + proteinFastaPath} \
~{"-o " + filteredGffPath} \
~{true="-T " false="" outputGtfFormat}
}
output {
File? exonsFasta = exonsFastaPath
File? CDSFasta = CDSFastaPath
File? proteinFasta = proteinFastaPath
File? filteredGff = filteredGffPath
}
runtime {
docker: dockerImage
}
}