cwltool.subgraph

Attributes

UP

DOWN

INPUT

OUTPUT

STEP

Classes

Node

Functions

subgraph_visit(current, nodes, visited, direction)

declare_node(nodes, nodeid, tp)

Record the given nodeid in the graph.

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.

Module Contents

class cwltool.subgraph.Node

Bases: tuple

up
down
type
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:
Return type:

None

cwltool.subgraph.declare_node(nodes, nodeid, tp)

Record the given nodeid in the graph.

If the nodeid is already present, but its type is unset, set it. :returns: The Node tuple (even if already present in the graph).

Parameters:
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]