| 1 |
#!/usr/bin/env cwl-runner |
| 2 |
cwlVersion: v1.0 |
| 3 |
class: CommandLineTool |
| 4 |
|
| 5 |
requirements: |
| 6 |
- class: DockerRequirement |
| 7 |
dockerPull: jdidion/cutadapt:1.16 |
| 8 |
- class: InlineJavascriptRequirement |
| 9 |
|
| 10 |
baseCommand: [cutadapt] |
| 11 |
|
| 12 |
inputs: |
| 13 |
|
| 14 |
paired_output1: |
| 15 |
type: File |
| 16 |
format: [ |
| 17 |
"http://edamontology.org/format_1929", # FASTA |
| 18 |
"http://edamontology.org/format_1930", # FASTQ |
| 19 |
] |
| 20 |
inputBinding: |
| 21 |
prefix: -o |
| 22 |
paired_output2: |
| 23 |
type: File? |
| 24 |
format: [ |
| 25 |
"http://edamontology.org/format_1929", # FASTA |
| 26 |
"http://edamontology.org/format_1930" # FASTQ |
| 27 |
] |
| 28 |
inputBinding: |
| 29 |
prefix: -p |
| 30 |
adapter1: |
| 31 |
type: string |
| 32 |
inputBinding: |
| 33 |
prefix: -a |
| 34 |
adapter2: |
| 35 |
type: |
| 36 |
- "null" |
| 37 |
- string |
| 38 |
inputBinding: |
| 39 |
prefix: -A |
| 40 |
threads: |
| 41 |
type: int? |
| 42 |
inputBinding: |
| 43 |
prefix: -j |
| 44 |
default: 1 |
| 45 |
quality: |
| 46 |
type: int? |
| 47 |
inputBinding: |
| 48 |
prefix: -q |
| 49 |
default: 0 |
| 50 |
trim_n: |
| 51 |
type: boolean? |
| 52 |
inputBinding: |
| 53 |
prefix: --trim-n |
| 54 |
min_len: |
| 55 |
type: int? |
| 56 |
inputBinding: |
| 57 |
prefix: -m |
| 58 |
default: 0 |
| 59 |
error_rate: |
| 60 |
type: double |
| 61 |
inputBinding: |
| 62 |
prefix: -e |
| 63 |
default: 0.1 |
| 64 |
paired_input1: |
| 65 |
type: File |
| 66 |
format: [ |
| 67 |
"http://edamontology.org/format_1929", # FASTA |
| 68 |
"http://edamontology.org/format_1930", # FASTQ |
| 69 |
] |
| 70 |
streamable: true |
| 71 |
inputBinding: |
| 72 |
position: 99 |
| 73 |
paired_input2: |
| 74 |
type: File? |
| 75 |
format: [ |
| 76 |
"http://edamontology.org/format_1929", # FASTA |
| 77 |
"http://edamontology.org/format_1930" # FASTQ |
| 78 |
] |
| 79 |
streamable: true |
| 80 |
inputBinding: |
| 81 |
position: 100 |
| 82 |
|
| 83 |
outputs: |
| 84 |
trimmed1: |
| 85 |
type: File |
| 86 |
streamable: true |
| 87 |
outputBinding: |
| 88 |
glob: $(inputs.paired_output1) |
| 89 |
trimmed2: |
| 90 |
type: File? |
| 91 |
streamable: true |
| 92 |
outputBinding: |
| 93 |
glob: $(inputs.paired_output2) |