|
| 1 | +#!/usr/bin/env cwl-runner |
1 | 2 | cwlVersion: v1.0 |
2 | 3 | class: CommandLineTool |
3 | 4 |
|
4 | | -label: "InterProScan: protein sequence classifier" |
5 | | - |
6 | | -doc: | |
7 | | - Version 5.21-60 can be downloaded here: |
8 | | - https://github.com/ebi-pf-team/interproscan/wiki/HowToDownload |
9 | | - |
10 | | - Documentation on how to run InterProScan 5 can be found here: |
11 | | - https://github.com/ebi-pf-team/interproscan/wiki/HowToRun |
12 | | - |
13 | 5 | requirements: |
| 6 | + InlineJavascriptRequirement: {} |
14 | 7 | ResourceRequirement: |
15 | | - ramMin: 10240 |
16 | | - coresMin: 3 |
| 8 | + coresMax: 1 |
| 9 | + ramMin: 100 # just a default, could be lowered |
17 | 10 | SchemaDefRequirement: |
18 | 11 | types: |
19 | | - - $import: InterProScan-apps.yml |
| 12 | + - $import: biom-convert-table.yaml |
20 | 13 |
|
21 | 14 | hints: |
| 15 | + DockerRequirement: |
| 16 | + dockerPull: 'quay.io/biocontainers/biom-format:2.1.6--py27_0' |
22 | 17 | SoftwareRequirement: |
23 | 18 | packages: |
24 | | - interproscan: |
25 | | - specs: [ "https://identifiers.org/rrid/RRID:SCR_005829" ] |
26 | | - version: [ "5.21-60" ] |
| 19 | + biom-format: |
| 20 | + specs: [ "https://doi.org/10.1186/2047-217X-1-7" ] |
| 21 | + version: [ "2.1.6" ] |
27 | 22 |
|
28 | 23 | inputs: |
29 | | - proteinFile: |
| 24 | + biom: |
30 | 25 | type: File |
| 26 | + format: edam:format_3746 # BIOM |
31 | 27 | inputBinding: |
32 | | - prefix: --input |
33 | | - applications: |
34 | | - type: InterProScan-apps.yml#apps[]? |
| 28 | + prefix: --input-fp |
| 29 | + table_type: |
| 30 | + type: biom-convert-table.yaml#table_type |
35 | 31 | inputBinding: |
36 | | - itemSeparator: ',' |
37 | | - prefix: --applications |
| 32 | + prefix: --table-type |
38 | 33 |
|
39 | | -baseCommand: interproscan.sh |
| 34 | + header_key: |
| 35 | + type: string? |
| 36 | + doc: | |
| 37 | + The observation metadata to include from the input BIOM table file when |
| 38 | + creating a tsv table file. By default no observation metadata will be |
| 39 | + included. |
| 40 | + inputBinding: |
| 41 | + prefix: --header-key |
40 | 42 |
|
41 | | -arguments: |
42 | | - - valueFrom: $(inputs.proteinFile.nameroot).i5_annotations |
43 | | - prefix: --outfile |
44 | | - - valueFrom: TSV |
45 | | - prefix: --formats |
46 | | - - --disable-precalc |
47 | | - - --goterms |
48 | | - - --pathways |
49 | | - - valueFrom: $(runtime.tmpdir) |
50 | | - prefix: --tempdir |
| 43 | +baseCommand: [ biom, convert ] |
51 | 44 |
|
| 45 | +arguments: |
| 46 | + - valueFrom: $(inputs.biom.nameroot).hdf5 |
| 47 | + prefix: --output-fp |
| 48 | + - --to-hdf5 |
52 | 49 |
|
53 | 50 | outputs: |
54 | | - i5Annotations: |
| 51 | + result: |
55 | 52 | type: File |
56 | | - format: iana:text/tab-separated-values |
57 | | - outputBinding: |
58 | | - glob: $(inputs.proteinFile.nameroot).i5_annotations |
| 53 | + outputBinding: { glob: "$(inputs.biom.nameroot)*" } |
59 | 54 |
|
60 | 55 | $namespaces: |
61 | | - iana: https://www.iana.org/assignments/media-types/ |
62 | | - s: http://schema.org/ |
| 56 | + edam: http://edamontology.org/ |
| 57 | + s: http://schema.org/ |
| 58 | + |
63 | 59 | $schemas: |
64 | | - - https://schema.org/docs/schema_org_rdfa.html |
| 60 | + - http://edamontology.org/EDAM_1.16.owl |
| 61 | + - https://schema.org/docs/schema_org_rdfa.html |
65 | 62 |
|
66 | 63 | s:license: "https://www.apache.org/licenses/LICENSE-2.0" |
67 | 64 | s:copyrightHolder: "EMBL - European Bioinformatics Institute" |
0 commit comments