Skip to content

connect/disconnect

The connect and disconnect commands can be used to connect CWL CommandLineTools, workflow inputs and workflow outputs forming a directed acyclic graph. The connect command establishes a connection and adds in-, outputs and steps if they are not present in the current workflow. The names of the steps slots can be copied from the output of s4n list. For connections to in- or outputs a @ has to be used es prefix e.g. @inputs/my-file. The name of the node is constructed by using the tool’s name and the name of the tool’s node separated by a forward slash: mytool/my-input. Connections are made using the --from and --to arguments together with the name of the workflow. If the Workflow does not exist when creating the first connection, the workflow will be created automatically.

Usage
Connects a workflow node
Usage: s4n connect --from <FROM> --to <TO> <NAME>
Arguments:
<NAME> Name of the workflow name to be altered
Options:
-f, --from <FROM> Starting Node: [tool]/[output]
-t, --to <TO> Ending Node: [tool]/[input]
-h, --help Print help

The same logic applies for the disconnect command.

Usage
Disconnects a workflow node
Usage: s4n disconnect --from <FROM> --to <TO> <NAME>
Arguments:
<NAME> Name of the workflow name to be altered
Options:
-f, --from <FROM> Starting Node: [tool]/[output]
-t, --to <TO> Ending Node: [tool]/[input]
-h, --help Print help