API reference¶
Graph¶
- class biocomposer.Graph¶
Bases:
object- add_decision_node(score_fn: str, conditions: list, modifier_tool) DecisionNode¶
- add_edge(*edges)¶
Wire nodes together. Each edge is a 2-tuple (upstream_node, downstream_node).
- add_gather_node(tool_name: str, split_key: str, gpu: str = None, args_override: str = None, entrypoint_override: str = None) GatherNode¶
Scatter an upstream collection (the upstream output key split_key) over a cardinality-one inner tool, running it once per item and gathering the per-item outputs into a dict-of-lists.
- add_node(tool_name: str, gpu: str = None, args_override: str = None, entrypoint_override: str = None) Node¶
- execute()¶
Nodes¶
- class biocomposer.Node(tool_name: str, inNodes: list = None, args_override: str = None, entrypoint_override: str = None)¶
Bases:
object- get_node_input()¶
- install()¶
- class biocomposer.GatherNode(tool_name: str, split_key: str, inNodes: list = None, args_override: str = None, entrypoint_override: str = None)¶
Bases:
NodeRun a cardinality-one tool once per item of an upstream collection, gathering outputs into a dict-of-lists. split_key names the upstream output key holding the collection. Partitioning is done by the edge connector (see _execute_gather_node).