mantlebio.core.pipeline_run.mantle_pipeline_run module#
- class mantlebio.core.pipeline_run.mantle_pipeline_run.MantlePipelineRun(pipeline_run, session, storage_client, dataset_client)[source]#
Bases:
_IPipelineRun
- _build_pipeline_data(pipeline_data, data_class)[source]#
Generic function to build pipeline data.
- Parameters:
pipeline_data (
Dict
[str
,Any
]) – Dictionary of pipeline data.data_class – The protobuf class for either PipelineOutputs or PipelineInputs.
- Return type:
Any
- Returns:
An instance of data_class with populated data.
- _build_pipeline_input(pipeline_inputs)[source]#
Build a PipelineInputs object from a dictionary of pipeline inputs.
- Parameters:
pipeline_inputs (
Dict
[str
,Any
]) – Dictionary of pipeline input data.- Return type:
PipelineInputs
- Returns:
PipelineInputs protobuf object.
- _build_pipeline_kickoff(pipeline_id, pipeline_version='', external=False, inputs=None)[source]#
- Return type:
PipelineKickOff
- _build_pipeline_output(pipeline_outputs)[source]#
Build a PipelineOutputs object from a dictionary of pipeline outputs.
- Parameters:
pipeline_outputs (
Dict
[str
,Any
]) – Dictionary of pipeline output data.- Return type:
PipelineOutputs
- Returns:
PipelineOutputs protobuf object.
- add_input(key, value)[source]#
Add an input to the pipeline run
- Parameters:
key (str) – Input key
value (Any) – Input value
- Returns:
PipelineRun object
- Return type:
PipelineRun
- add_output(key, value)[source]#
Add an output to the pipeline run
- Parameters:
key (str) – Output key
value (Any) – Output value
- Returns:
PipelineRun object
- Return type:
PipelineRun
- get_input(key)[source]#
Get an input from the pipeline run
- Parameters:
key (str) – Input key
- Returns:
PipelineRunValue object
- Return type:
PipelineRunValue
- get_input_dataset(key)[source]#
Get a dataset from the pipeline run from an input key
- Parameters:
key (str) – Input key
- Returns:
Dataset object
- Return type:
Dataset
- get_input_dataset_list(key)[source]#
Get a list of datasets from the pipeline run that belong to a given input key
- Parameters:
key (str) – Input key
- Returns:
List of Dataset objects
- Return type:
list
- get_output(key)[source]#
Get an output from the pipeline run
- Parameters:
key (str) – Output key
- Returns:
PipelineRunValue object
- Return type:
PipelineRunValue
- get_s3_input(key, local_path)[source]#
Pull a pipeline input from the pipeline run input
- Return type:
None
- property pipeline_run_pb2: PipelineRun#
- pull_input(key)[source]#
Pull a pipeline input from the pipeline run input
- Return type:
PipelineRunValue
- pull_output(key)[source]#
Pull a pipeline output from the pipeline run output
- Return type:
PipelineRunValue