NLeSC / scriptcwl

Create cwl workflows by writing a simple Python script
https://scriptcwl.readthedocs.io/
Apache License 2.0
40 stars 9 forks source link

Wildcard/regex input filename argument handling example ? #114

Open nyue opened 5 years ago

nyue commented 5 years ago

Hi,

I have the following command line I wish to use scriptcwl to generate a CWL file

myprogram -i /somepath/*.exr

Is there any example code I can refer to which may help me with the above ?

Cheers

jvdzwaan commented 5 years ago

I'm not sure I understand your question, scriptcwl is for generating cwl workflows given existing steps (command line tools, etc.). Your question seems related to specifying the base command of a cwl command line tool (correct me if I'm wrong) and you can't use scriptcwl to do that.

I usually create my cwl command line tools by hand. There is is a cwl user guide that explains how to do that, and the biostars forum is a good place to ask cwl related questions.

That said, I think using wildcards in the base command will just work, not sure about regexes.