question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested scatter blocks

See original GitHub issue

It would be great if Cromwell supported nested scatter blocks. For example:

workflow wf {

  Array[Array[String]] array

  scatter (arr in array) {
    scatter (i in arr) {
      call foo {
        input: str=i
      }
    }
  }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yfarjouncommented, Sep 20, 2021

I have managed to run nested scatters on Terra in Cromwell 67. So…that’s a yes!

1reaction
alongalorcommented, Sep 4, 2017

If that isn’t good enough (e.g. you need to do something to a before you scatter over the bs), you can put the inner scatter into a sub-workflow and Cromwell will be able to run it just fine.

This is what I have implemented in order to get around this but it adds significant complexity to code. I agree that support for a nested scatter option is an excellent idea and would save pipeline writers a lot of time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

d3 simple scatter plots from nested data - Popular Blocks
d3 simple scatter plots from nested data. 0 5 10 15 20 25 30 0 20 40 60 80 100 0 5 10...
Read more >
Better solution instead of nested synchronized blocks in Java?
I have a Bank class with a list of Account . The bank has a transfer() method to transfer a value from one...
Read more >
Stochastic block models reveal a robust nested pattern in ...
Stochastic block models reveal a robust nested pattern in healthy human gut ... Points in the scatter-plots indicate individual gut microbiome samples.
Read more >
Nested variable expansion in WDL code block
I know this is because ~{adapter_file} is nested inside trim_program_array[0], so it's only expanding the “outer” variable.
Read more >
Nesting Riser - Etsy
Check out our nesting riser selection for the very best in ... Set of 3- Distressed Black- Plant Risers- Solid Block Risers- Photo ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found