forked from biowdl/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstringtie.wdl
86 lines (76 loc) · 2.08 KB
/
stringtie.wdl
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version 1.0
task Stringtie {
input {
File bam
File bamIndex
File? referenceGtf
Boolean skipNovelTranscripts = false
String assembledTranscriptsFile
Boolean? firstStranded
Boolean? secondStranded
String? geneAbundanceFile
Int threads = 1
Int memory = 10
String dockerImage = "quay.io/biocontainers/stringtie:1.3.4--py35_0"
}
command {
set -e
mkdir -p $(dirname ~{assembledTranscriptsFile})
stringtie \
~{"-p " + threads} \
~{"-G " + referenceGtf} \
~{true="-e" false="" skipNovelTranscripts} \
~{true="--rf" false="" firstStranded} \
~{true="--fr" false="" secondStranded} \
-o ~{assembledTranscriptsFile} \
~{"-A " + geneAbundanceFile} \
~{bam}
}
output {
File assembledTranscripts = assembledTranscriptsFile
File? geneAbundance = geneAbundanceFile
}
runtime {
cpu: threads
memory: memory
docker: dockerImage
}
}
task Merge {
input {
Array[File]+ gtfFiles
String outputGtfPath
File? guideGtf
Int? minimumLength
Float? minimumCoverage
Float? minimumFPKM
Float? minimumTPM
Float? minimumIsoformFraction
Boolean keepMergedTranscriptsWithRetainedIntrons = false
String? label
Int memory = 10
String dockerImage = "quay.io/biocontainers/stringtie:1.3.4--py35_0"
}
command {
set -e
mkdir -p $(dirname ~{outputGtfPath})
stringtie --merge \
-o ~{outputGtfPath} \
~{"-G " + guideGtf} \
~{"-m " + minimumLength } \
~{"-c " + minimumCoverage} \
~{"-F " + minimumFPKM} \
~{"-T " + minimumTPM} \
~{"-f " + minimumIsoformFraction} \
~{true="-i" false="" keepMergedTranscriptsWithRetainedIntrons} \
~{"-l " + label} \
~{sep=" " gtfFiles}
}
output {
File mergedGtfFile = outputGtfPath
}
runtime {
memory: memory
docker: dockerImage
}
}