cwl2nxf icon indicating copy to clipboard operation
cwl2nxf copied to clipboard

Support different YAML/JSON styles

Open KevinSayers opened this issue 7 years ago • 3 comments

Currently the converter does not handle the CWL style shown below, only CWL that lacks - id will parse correctly. Also the input file can only be in YAML, JSON is unsupported presently.

- id: fooInput

KevinSayers avatar May 18 '17 12:05 KevinSayers

i'm still not understanding if there's an automated conversion/normalisation tool between these two formats. Could you please investigate with the CWL community?

Also create a separate issue for the missing JSON input handling.

pditommaso avatar May 18 '17 14:05 pditommaso

There is an automated conversion from YAML to JSON, but all current parsing is based on the references for YAML.

I think we can easily get around this though by checking if

- id: fooID

is present in the lines from a file, and then just doing a replace

cwlline.replace('- id:', '')

KevinSayers avatar May 18 '17 21:05 KevinSayers

No, I mean an automated conversion between the different versions of the YAML format.

pditommaso avatar May 19 '17 07:05 pditommaso