Subworkflow

class openmsimodel.subworkflow.subworkflow.Subworkflow(name: str, *, workflow: Workflow = None, self_assign: bool = True)

Bases: Runnable

Subworkflow represents 1+ BaseElements that are grouped together for easier instantiation, manipulation, analysis, and more. The grouping can be based on any rule or criteria of interest, such as consecutive elements, elements with a logical relationships or simply preference.

classmethod from_(any)

returns a subworkflow instantiated from elements contained it. will vary based on subworkflow and element types.

classmethod get_command_line_arguments()

Get the list of argument names and the dictionary of argument names/default values to add to the argument parser

Returns:

args, a list of argument names recognized by the argument parser

Return type:

list(str)

Returns:

kwargs, a dictionary of default argument values keyed by argument names recognized by the argument parser

Return type:

dict

classmethod run_from_command_line(args=None)

Child classes should implement this function to do whatever it is they do when they run from the command line

Parameters:

args (list) – the list of arguments to send to the parser instead of getting them from sys.argv