-
Notifications
You must be signed in to change notification settings - Fork 19
/
preprocess-fastq.workflow.cwl
78 lines (73 loc) · 1.92 KB
/
preprocess-fastq.workflow.cwl
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
cwlVersion: v1.0
class: Workflow
label: preprocess fastq
doc: |
Remove and trim low quality reads from fastq files.
Return fasta files with reads passed and reads removed.
requirements:
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
- class: ScatterFeatureRequirement
- class: MultipleInputFeatureRequirement
inputs:
jobid: string
sequences: File
minQual:
type: int
default: 15
maxLqb:
type: int
default: 5
minLength:
type: int
default: 30
outputs:
trimmed:
type: File
outputSource: adapterTrim/outTrim
passed:
type: File
outputSource: passed2fasta/file
removed:
type: File
outputSource: removed2fasta/file
steps:
adapterTrim:
run: ../Tools/autoskewer.tool.cwl
in:
input: sequences
outName:
source: jobid
valueFrom: $(self).080.adapter.trim.passed.fastq
out: [outTrim]
filter:
run: ../Tools/fastq-mcf.tool.cwl
in:
input: adapterTrim/outTrim
minQual: minQual
maxLqb: maxLqb
minLength: minLength
outName:
source: jobid
valueFrom: $(self).100.preprocess.fastq
out: [outTrim, outSkip]
passed2fasta:
run: ../Tools/seqUtil.tool.cwl
in:
sequences: filter/outTrim
fastq2fasta:
default: true
output:
source: jobid
valueFrom: $(self).100.preprocess.passed.fna
out: [file]
removed2fasta:
run: ../Tools/seqUtil.tool.cwl
in:
sequences: filter/outSkip
fastq2fasta:
default: true
output:
source: jobid
valueFrom: $(self).100.preprocess.removed.fna
out: [file]