Skip to content

Commit de65c1e

Browse files
committed
readd params argument to rerun_invocation, add note about runtime params to docs
1 parent 586aac6 commit de65c1e

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

bioblend/galaxy/invocations/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def show_invocation(self, invocation_id):
133133
return self._get(url=url)
134134

135135
def rerun_invocation(self, invocation_id: str, remap: bool = False, inputs_update: Optional[dict] = None,
136-
history_id: Optional[str] = None,
136+
params_update: Optional[dict] = None, history_id: Optional[str] = None,
137137
history_name: Optional[str] = None, import_inputs_to_history: bool = False,
138138
replacement_params: Optional[dict] = None, allow_tool_state_corrections: bool = False,
139139
inputs_by: Optional[str] = None, parameters_normalized: bool = False):
@@ -156,6 +156,12 @@ def rerun_invocation(self, invocation_id: str, remap: bool = False, inputs_updat
156156
invocation, this should contain a mapping of workflow inputs to the new
157157
datasets and dataset collections.
158158
159+
:type params: dict
160+
:param params: If different non-dataset tool parameters should be
161+
used to the original invocation, this should contain a mapping of the
162+
new parameter values. Runtime parameters should be specified through
163+
``inputs_update``.
164+
159165
:type history_id: str
160166
:param history_id: The encoded history ID where to store the workflow
161167
outputs. Alternatively, ``history_name`` may be specified to create a
@@ -222,7 +228,8 @@ def rerun_invocation(self, invocation_id: str, remap: bool = False, inputs_updat
222228
for inp, input_value in inputs_update.items():
223229
inputs[inp] = input_value
224230
payload = {'inputs': inputs}
225-
231+
if params:
232+
payload['parameters'] = params
226233
if replacement_params:
227234
payload['replacement_params'] = replacement_params
228235
if history_id:

bioblend/galaxy/workflows/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ def run_workflow(self, workflow_id, dataset_map=None, params=None,
295295
(e.g. ``{'23': {'id': '29beef4fadeed09f', 'src': 'ld'}}``)
296296
297297
:type params: dict
298-
:param params: A mapping of non-datasets tool parameters (see below)
298+
:param params: A mapping of non-datasets tool parameters (see below). Runtime parameters
299+
should be specified through ``inputs``.
299300
300301
:type history_id: str
301302
:param history_id: The encoded history ID where to store the workflow

0 commit comments

Comments
 (0)