forked from jarnolaitinen/RD_pipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cutadapt-v.1.18.cwl
50 lines (49 loc) · 1.04 KB
/
cutadapt-v.1.18.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
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
$namespaces:
sbg: 'https://www.sevenbridges.com/'
id: cutadapt2
requirements:
- class: InlineJavascriptRequirement
- class: DockerRequirement
dockerPull: 'cnag/cutadapt:1.18'
- class: ResourceRequirement
outdirMin: 2500
tmpdirMin: 2500
hints:
- class: ResourceRequirement
coresMin: 4
ramMin: 4000
baseCommand: [cutadapt, --interleaved]
arguments:
- position: 4
prefix: '-o'
valueFrom: '$(inputs.raw_sequences[0].basename + ".trimmed.fastq.gz")'
- position: 3
prefix: '--overlap'
valueFrom: '6'
- position: 1
prefix: '-j'
valueFrom: '0'
- position: 2
prefix: '--error-rate'
valueFrom: '0.2'
inputs:
- id: raw_sequences
type: File[]
inputBinding:
position: 20
prefix: ''
separate: false
- id: adaptors_file
type: File?
inputBinding:
position: 10
prefix: '-a'
outputs:
- id: trimmed_fastq
type: File
outputBinding:
glob: '*.trimmed.fastq.gz'
label: cutadapt