CWL: Scatter-gather Method
Creating the tools
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
requirements:
- class: InlineJavascriptRequirement
label: fastp
doc: Modified from https://github.com/nigyta/bact_genome/blob/master/cwl/tool/fastp/fastp.cwl
inputs:
fastq1:
type: File
inputBinding:
prefix: -i
fastq2:
type:
- File
- 'null'
inputBinding:
prefix: -I
threads:
type:
- int
- 'null'
default: 1
inputBinding:
prefix: --thread
qualified_phred_quality:
type:
- int
- 'null'
default: 20
inputBinding:
prefix: --qualified_quality_phred
unqualified_phred_quality:
type:
- int
- 'null'
default: 20
inputBinding:
prefix: --unqualified_percent_limit
min_length_required:
type:
- int
- 'null'
default: 50
inputBinding:
prefix: --length_required
force_polyg_tail_trimming:
type:
- boolean
- 'null'
inputBinding:
prefix: --trim_poly_g
disable_trim_poly_g:
type:
- boolean
- 'null'
default: true
inputBinding:
prefix: --disable_trim_poly_g
base_correction:
type:
- boolean
- 'null'
default: true
inputBinding:
prefix: --correction
outputs:
out_fastq1:
type: File
outputBinding:
glob:
- $(inputs.fastq1.nameroot).fastp.fastq
out_fastq2:
type:
- File
- 'null'
outputBinding:
glob:
- $(inputs.fastq2.nameroot).fastp.fastq
html_report:
type: File
outputBinding:
glob:
- fastp.html
json_report:
type: File
outputBinding:
glob:
- fastp.json
arguments:
- prefix: -o
valueFrom: $(inputs.fastq1.nameroot).fastp.fastq
- |
${
if (inputs.fastq2){
return '-O';
} else {
return '';
}
}
- |
${
if (inputs.fastq2){
return inputs.fastq2.nameroot + ".fastp.fastq";
} else {
return '';
}
}
baseCommand:
- fastpPipeline

Important remark
Last updated
Was this helpful?
