Is there a way to convert ["null", File] to File in CWL?
1
0
Entering edit mode
5.8 years ago

Is there a way to convert ["null", File] to File in CWL?

I understand the typing risk.

cwl • 1.2k views
ADD COMMENT
0
Entering edit mode

Please use cwl tag with CWL questions. People who support CWL follow those. I have added that tag for you.

ADD REPLY
0
Entering edit mode

That was my first inclination, yet for some weird reason I was not able to find that tag. Maybe I should try harder next time.

ADD REPLY
0
Entering edit mode

You just start typing the word. If a tag exists then it will show up otherwise you can create a new one by selecting the word you just typed.

ADD REPLY
0
Entering edit mode

Hello azat1b, can you give us more context as to what you're trying to do?

ADD REPLY
2
Entering edit mode
5.8 years ago

Hi,
I think you have no reason for concern.
When an input/output type is defined as any list of types, e.g. [string, File] - it means that the item that appears on that input/output in execution is one of these possible types (unless input is a defined as [wave, particle], in that case it can be both at the same time if you use quantum computers.) .
In your case the representation ["null", File] means that this input/output is optional(can be a File or can be null depending on how you use it)

ADD COMMENT

Login before adding your answer.

Traffic: 1819 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6