Question: CWL multidimensional arrays or arrays of tuples
gravatar for mkher
2.2 years ago by
mkher50 wrote:

Does CWL support multidimensional arrays? Is there a way to specify a list of paired fastq files? I am specifying them as two arrays of files, one for read1 and another for reaad2. This is awkward and I haven't figured out how to do crossproducts using them.

I have an input that is a list of tuples, and another input and ideally I want to do a crossproduct scatter

A: [(a1_1, a1_2), (a2_1, a2_2),]
B: [b1, b2]

should result in steps with these inputs:

 (a1_1, a1_2), b1
 (a1_1, a1_2), b2
 (a2_1, a2_2), b1
 (a2_1, a2_2), b2

Thank you,


cwl • 618 views
ADD COMMENTlink modified 2.1 years ago by bogdan.gavrilovic230 • written 2.2 years ago by mkher50
gravatar for bogdan.gavrilovic
2.1 years ago by
bogdan.gavrilovic230 wrote:

Yes, you can do that. Please check

In your case, you define the tool to have input A as array of files and B as file. This step should receive array of arrays on input A and array of files on B. If you simply define scatter as

  - A
  - B
scatterMethod: nested_crossproduct

you will get the steps like you defined above.

ADD COMMENTlink written 2.1 years ago by bogdan.gavrilovic230
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 963 users visited in the last hour