forked from common-workflow-library/bio-cwl-tools
/
fastp.cwl
executable file
·97 lines (90 loc) · 2.21 KB
/
fastp.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
doc: |
Modified from https://github.com/nigyta/bact_genome/blob/master/cwl/tool/fastp/fastp.cwl
requirements:
InlineJavascriptRequirement:
expressionLib:
- $include: typescript-expressions/fastp.cwljs
hints:
DockerRequirement:
dockerPull: quay.io/biocontainers/fastp:0.20.0--hdbcaa40_0
baseCommand: [fastp]
arguments:
- prefix: -o
valueFrom: $(get_output_r1_fastq_path(inputs))
- prefix: $(get_output_prefix_r2(inputs))
valueFrom: $(get_output_r2_fastq_path(inputs))
inputs:
fastq1:
type: File
format:
- edam:format_1930 # FASTA
- edam:format_1931 # FASTQ
inputBinding:
prefix: -i
fastq2:
format:
- edam:format_1930 # FASTA
- edam:format_1931 # FASTQ
type: File?
inputBinding:
prefix: -I
threads:
type: int?
default: 1
inputBinding:
prefix: --thread
qualified_phred_quality:
type: int?
default: 20
inputBinding:
prefix: --qualified_quality_phred
unqualified_phred_quality:
type: int?
default: 20
inputBinding:
prefix: --unqualified_percent_limit
min_length_required:
type: int?
default: 50
inputBinding:
prefix: --length_required
force_polyg_tail_trimming:
type: boolean?
inputBinding:
prefix: --trim_poly_g
disable_trim_poly_g:
type: boolean?
default: true
inputBinding:
prefix: --disable_trim_poly_g
base_correction:
type: boolean?
default: true
inputBinding:
prefix: --correction
outputs:
out_fastq1:
type: File
format: $(inputs.fastq1.format)
outputBinding:
glob: $(get_output_r1_fastq_path(inputs))
out_fastq2:
type: File?
format: $(inputs.fastq2.format)
outputBinding:
glob: $(get_output_r2_fastq_path(inputs))
html_report:
type: File
outputBinding:
glob: fastp.html
json_report:
type: File
outputBinding:
glob: fastp.json
$namespaces:
edam: http://edamontology.org/
$schemas:
- http://edamontology.org/EDAM_1.18.owl