cwltool.subgraph

Module Contents

Functions

subgraph_visit(current, nodes, visited, direction)

declare_node(nodes, nodeid, tp)

find_step(steps, stepid, loading_context)

Find the step (raw dictionary and WorkflowStep) for a given step id.

get_subgraph(roots, tool, loading_context)

Extract the subgraph for the given roots.

get_step(tool, step_id, loading_context)

Extract a single WorkflowStep for the given step_id.

get_process(tool, step_id, loading_context)

Find the underlying Process for a given Workflow step id.

Attributes

Node

UP

DOWN

INPUT

OUTPUT

STEP

cwltool.subgraph.Node
cwltool.subgraph.UP = up
cwltool.subgraph.DOWN = down
cwltool.subgraph.INPUT = input
cwltool.subgraph.OUTPUT = output
cwltool.subgraph.STEP = step
cwltool.subgraph.subgraph_visit(current, nodes, visited, direction)
Parameters
  • current (str) –

  • nodes (MutableMapping[str, Node]) –

  • visited (Set[str]) –

  • direction (str) –

Return type

None

cwltool.subgraph.declare_node(nodes, nodeid, tp)
Parameters
  • nodes (Dict[str, Node]) –

  • nodeid (str) –

  • tp (Optional[str]) –

Return type

Node

cwltool.subgraph.find_step(steps, stepid, loading_context)

Find the step (raw dictionary and WorkflowStep) for a given step id.

Parameters
Return type

Tuple[Optional[cwltool.utils.CWLObjectType], Optional[cwltool.workflow.WorkflowStep]]

cwltool.subgraph.get_subgraph(roots, tool, loading_context)

Extract the subgraph for the given roots.

Parameters
Return type

ruamel.yaml.comments.CommentedMap

cwltool.subgraph.get_step(tool, step_id, loading_context)

Extract a single WorkflowStep for the given step_id.

Parameters
Return type

ruamel.yaml.comments.CommentedMap

cwltool.subgraph.get_process(tool, step_id, loading_context)

Find the underlying Process for a given Workflow step id.

Parameters
Return type

Tuple[Any, cwltool.workflow.WorkflowStep]