-
Notifications
You must be signed in to change notification settings - Fork 7
/
trnascan.wdl
executable file
·54 lines (51 loc) · 1.3 KB
/
trnascan.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
version 1.0
workflow trnascan {
input {
File imgap_input_fasta
String imgap_project_id
Int additional_threads
String container = "microbiomedata/img-omics@sha256:d5f4306bf36a97d55a3710280b940b89d7d4aca76a343e75b0e250734bc82b71"
}
call trnascan_ba {
input:
input_fasta = imgap_input_fasta,
project_id = imgap_project_id,
threads = additional_threads,
container=container
}
output {
File gff = trnascan_ba.gff
File bacterial_out = trnascan_ba.bacterial_out
File archaeal_out = trnascan_ba.archaeal_out
}
meta {
author: "Brian Foster"
email: "[email protected]"
version: "1.0.0"
}
}
task trnascan_ba {
input {
File input_fasta
String project_id
String prefix=sub(project_id, ":", "_")
Int threads
String container
}
command <<<
set -euo pipefail
cp ~{input_fasta} ./~{prefix}_contigs.fna
/opt/omics/bin/structural_annotation/trnascan-se_trnas.sh ~{prefix}_contigs.fna ~{threads}
>>>
runtime {
time: "9:00:00"
docker: container
cpu: threads
memory: "115G"
}
output {
File bacterial_out = "~{prefix}_trnascan_bacterial.out"
File archaeal_out = "~{prefix}_trnascan_archaeal.out"
File gff = "~{prefix}_trna.gff"
}
}