|
| 1 | +#!/usr/bin/env cwl-runner |
| 2 | +cwlVersion: v1.0 |
| 3 | +class: CommandLineTool |
| 4 | + |
| 5 | +label: CAMERA Group FWHM |
| 6 | + |
| 7 | +hints: |
| 8 | + DockerRequirement: |
| 9 | + dockerPull: container-registry.phenomenal-h2020.eu/phnmnl/camera |
| 10 | + SoftwareRequirement: |
| 11 | + packages: |
| 12 | + camera: |
| 13 | + specs: |
| 14 | + - https://bio.tools/camera |
| 15 | + - https://identifiers.org/rrid/RRID:SCR_002466 |
| 16 | + |
| 17 | +inputs: |
| 18 | + xs_annotate: |
| 19 | + type: File |
| 20 | + format: iana:application/x-r-data |
| 21 | + label: xsAnnotate file |
| 22 | + doc: A rdata file with a xsAnnotate object from one sample |
| 23 | + sigma: |
| 24 | + type: float |
| 25 | + label: The multiplier of the standard deviation |
| 26 | + per_fwhm: |
| 27 | + type: float |
| 28 | + label: Percentage of the width of the FWHM |
| 29 | + intensity_values: |
| 30 | + type: string |
| 31 | + label: Intensity values for ordering. |
| 32 | + doc: Allowed values are into, maxo, intb |
| 33 | + |
| 34 | +outputs: |
| 35 | + grouped_peaks: |
| 36 | + type: File |
| 37 | + format: iana:application/x-r-data |
| 38 | + doc: | |
| 39 | + a rData file containing one xsAnnotate object containing grouped peaks in |
| 40 | + so called pseudospectra |
| 41 | + outputBinding: |
| 42 | + glob: ouput.Rdata |
| 43 | + |
| 44 | +baseCommand: groupFWHM.r |
| 45 | + |
| 46 | +arguments: |
| 47 | + - input=$(inputs.xs_annotate.path) |
| 48 | + - output=output.Rdata |
| 49 | + - sigma=$(inputs.sigma) |
| 50 | + - perfwhm=$(inputs.per_fwhm) |
| 51 | + - intval=$(inputs.intensity_values) |
| 52 | + |
| 53 | +doc: | |
| 54 | + Group peaks of a xsAnnotate object according to their retention time into |
| 55 | + pseudospectra-groups. Uses the peak FWHMs as grouping borders. |
| 56 | + |
| 57 | + **Please cite**: |
| 58 | + R Core Team (2013). R: A language and Environment for Statistical Computing. http://www.r-project.org |
| 59 | + |
| 60 | + **References** |
| 61 | + Kuhl C, Tautenhahn R, Boettcher C, Larson TR and Neumann S (2012). "CAMERA: |
| 62 | + an integrated strategy for compound spectra extraction and annotation of |
| 63 | + liquid chromatography/mass spectrometry data sets." Analytical Chemistry, 84, |
| 64 | + pp. 283-289. http://pubs.acs.org/doi/abs/10.1021/ac202450g. |
| 65 | + |
| 66 | +$namespaces: |
| 67 | + iana: "https://www.iana.org/assignments/media-types/" |
| 68 | + |
0 commit comments