| 1 |
#!/usr/bin/env cwl-runner |
| 2 |
cwlVersion: v1.0 |
| 3 |
class: CommandLineTool |
| 4 |
|
| 5 |
requirements: |
| 6 |
- class: DockerRequirement |
| 7 |
dockerPull: jdidion/skewer |
| 8 |
- class: InlineJavascriptRequirement |
| 9 |
|
| 10 |
baseCommand: [skewer] |
| 11 |
|
| 12 |
inputs: |
| 13 |
mode: |
| 14 |
type: string |
| 15 |
inputBinding: |
| 16 |
prefix: -m |
| 17 |
position: 0 |
| 18 |
default: pe |
| 19 |
adapter1: |
| 20 |
type: string |
| 21 |
inputBinding: |
| 22 |
prefix: -x |
| 23 |
position: 0 |
| 24 |
adapter2: |
| 25 |
type: string? |
| 26 |
inputBinding: |
| 27 |
prefix: -y |
| 28 |
position: 0 |
| 29 |
min_len: |
| 30 |
type: int? |
| 31 |
inputBinding: |
| 32 |
prefix: -l |
| 33 |
position: 0 |
| 34 |
qcut: |
| 35 |
type: int? |
| 36 |
inputBinding: |
| 37 |
prefix: -q |
| 38 |
position: 0 |
| 39 |
filter_ns: |
| 40 |
type: boolean? |
| 41 |
inputBinding: |
| 42 |
prefix: -n |
| 43 |
position: 0 |
| 44 |
error_rate: |
| 45 |
type: double? |
| 46 |
inputBinding: |
| 47 |
prefix: -r |
| 48 |
position: 0 |
| 49 |
threads: |
| 50 |
type: int? |
| 51 |
inputBinding: |
| 52 |
prefix: -t |
| 53 |
position: 0 |
| 54 |
default: 1 |
| 55 |
zipped: |
| 56 |
type: boolean? |
| 57 |
inputBinding: |
| 58 |
prefix: -z |
| 59 |
position: 0 |
| 60 |
quiet: |
| 61 |
type: boolean? |
| 62 |
inputBinding: |
| 63 |
prefix: --quiet |
| 64 |
position: 0 |
| 65 |
output_prefix: |
| 66 |
type: File? |
| 67 |
inputBinding: |
| 68 |
prefix: -o |
| 69 |
position: 0 |
| 70 |
paired_input1: |
| 71 |
type: File |
| 72 |
format: "http://edamontology.org/format_1930" # FASTQ |
| 73 |
streamable: true |
| 74 |
inputBinding: |
| 75 |
position: 1 |
| 76 |
paired_input2: |
| 77 |
type: File? |
| 78 |
format: "http://edamontology.org/format_1930" # FASTQ |
| 79 |
streamable: true |
| 80 |
inputBinding: |
| 81 |
position: 2 |
| 82 |
|
| 83 |
outputs: |
| 84 |
trimmed1: |
| 85 |
type: File |
| 86 |
streamable: true |
| 87 |
outputBinding: |
| 88 |
glob: $(inputs.output_prefix || inputs.paired_input1.replace(/([_\.]1)(\.fq|\.fastq)(\.gz)?/g,'')+"*-trimmed")).fastq1.gz |
| 89 |
trimmed2: |
| 90 |
type: File? |
| 91 |
streamable: true |
| 92 |
outputBinding: |
| 93 |
glob: $(inputs.output_prefix || inputs.paired_input2.replace(/([_\.]2)(\.fq|\.fastq)(\.gz)?/g,'')+"*-trimmed")).fastq2.gz |