-
Notifications
You must be signed in to change notification settings - Fork 0
/
identify.wdl
97 lines (74 loc) · 1.94 KB
/
identify.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
87
88
89
90
91
92
93
94
95
96
97
# This project constitutes a work of the United States Government and is not
# subject to domestic copyright protection under 17 USC § 105. No Rights Are
# Reserved.
# This program is distributed in the hope that it will be useful. Responsibility
# for the use of the system and interpretation of documentation and results lies
# solely with the user. In no event shall FDA be liable for direct, indirect,
# special, incidental, or consequential damages resulting from the use, misuse,
# or inability to use the system and accompanying documentation. Third parties'
# use of or acknowledgment of the system does not in any way represent that
# FDA endorses such third parties or expresses any opinion with respect to their
# statements.
# This program is free software: you can redistribute it and/or modify it.
version 1.1
struct Tool {
String name
String version
}
task bam {
input {
File file
}
command <<<
samtools view -H ~{file} | grep '^@RG' | cut -f2 | cut -d: -f2
>>>
output {
String name = read_string(stdout())
}
parameter_meta {
file: "Reads file in BAM format."
}
runtime {
container: "staphb/samtools:1.19"
cpu: 1
memory: "1024 MB"
}
}
task fastq {
input {
File file
}
command <<<
head ~{file} -n 1 | cut -d@ -f2- |cut -d. -f1
>>>
output {
String name = read_string(stdout())
}
parameter_meta {
file: "Reads file in FASTQ format."
}
runtime {
container: "ubuntu:xenial"
cpu: 1
memory: "1024 MB"
}
}
task fasta {
input {
File file
}
command <<<
head -n 1 ~{file} | cut -d'>' -f2
>>>
output {
String name = read_string(stdout())
}
parameter_meta {
file: "Reads file in FASTA format."
}
runtime {
container: "ubuntu:xenial"
cpu: 1
memory: "1024 MB"
}
}