cwlviewer
                                
                                 cwlviewer copied to clipboard
                                
                                    cwlviewer copied to clipboard
                            
                            
                            
                        expand sub workflows in place
Requested by many users, including just now by NCBI
@mr-c I would like to work on this issue. Can you please direct me on how to start, and what all files to look at? I've done the installation.
Copying my response from gitter:
I would start with understanding what a subworkflow is, and how it is expressed in CWL. I suggest going through this training https://www.commonwl.org/rnaseq-training/ .
Subworkflows are introduced in lesson 5.
Example: https://view.commonwl.org/workflows/github.com/genome/analysis-workflows/blob/0b6e8fd8ead7644cf5398395b76af5cf4011686f/definitions/subworkflows/sequence_to_bqsr_nonhuman.cwl
The orange box named "adapter for sequence_align_and_tag" is a sub workflow. Today, if you double click that box then it opens separately.
The goal would be that the orange box expands to include the contents on this page.
A packed.cwl example:
https://view.commonwl.org/workflows/gitlab.com/m-unlock/cwl/blob/dev/cwl/workflows/packed/workflow_metagenomics_assembly.cwl
which retrieves this workflow:
https://gitlab.com/m-unlock/cwl/-/tree/dev/cwl/workflows/packed
This is a compact representation of a workflow with multiple subworkflows from https://gitlab.com/m-unlock/cwl/-/blob/dev/cwl/workflows/workflow_metagenomics_assembly.cwl in case you needed additional examples.