cwlviewer icon indicating copy to clipboard operation
cwlviewer copied to clipboard

expand sub workflows in place

Open mr-c opened this issue 7 years ago • 4 comments

Requested by many users, including just now by NCBI

mr-c avatar Jun 21 '18 16:06 mr-c

@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.

Anushka-shukla avatar Apr 05 '21 14:04 Anushka-shukla

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.

tetron avatar Apr 05 '21 14:04 tetron

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.

mr-c avatar Apr 09 '21 13:04 mr-c

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.

jjkoehorst avatar Oct 27 '22 08:10 jjkoehorst