Skip to content

Commit ffff18f

Browse files
Michele BerselliMichele Berselli
Michele Berselli
authored and
Michele Berselli
committed
.
1 parent 5cecfa5 commit ffff18f

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

Diff for: docs/ff_functions.rst

+7-17
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ FF_functions
55
create_metawfr
66
**************
77

8-
Function to create a meta-workflow-run json structure for case from case metadata.
8+
The function ``create_metawfr_from_case(metawf_uuid<str>, case_uuid<str>, type<str>, ff_key<key>, post=False, patch_case=False, verbose=False)`` allows to create a meta-workflow-run json structure for case from case metadata.
99
Return json structure for the meta-workflow-run.
1010
Can automatically post the meta-workflow-run as *MetaWorkflowRun* object on the portal and patch ``meta_workflow_run`` key for case with the new uuid.
1111

12-
``create_metawfr_from_case(metawf_uuid<str>, case_uuid<str>, type<str>, ff_key<key>, post=False, patch_case=False, verbose=False)``
13-
1412
.. code-block:: python
1513
1614
from magma_ff import create_metawfr
@@ -36,10 +34,8 @@ Can automatically post the meta-workflow-run as *MetaWorkflowRun* object on the
3634
run_metawfr
3735
***********
3836

39-
Function to run workflow-runs in meta-workflow-run.
40-
Calculates which workflow-runs are ready to run, starts the run with tibanna and patch the metadata.
41-
42-
``run_metawfr(metawfr_uuid<str>, ff_key<key>, verbose=False, sfn='tibanna_zebra', env='fourfront-cgap', maxcount=None)``
37+
The function ``run_metawfr(metawfr_uuid<str>, ff_key<key>, verbose=False, sfn='tibanna_zebra', env='fourfront-cgap', maxcount=None)`` allows to run workflow-runs in meta-workflow-run.
38+
Calculates which workflow-runs are ready to run, starts the run with tibanna and patches the metadata.
4339

4440
.. code-block:: python
4541
@@ -65,11 +61,9 @@ Calculates which workflow-runs are ready to run, starts the run with tibanna and
6561
status_metawfr
6662
**************
6763

68-
Function to check and patch status for workflow-runs in meta-workflow-run that are running.
64+
The function ``status_metawfr(metawfr_uuid<str>, ff_key<key>, verbose=False, env='fourfront-cgap')`` allows to check and patch status for workflow-runs in meta-workflow-run that are running.
6965
Update the status to ``completed`` or ``failed`` for finished runs.
7066

71-
``status_metawfr(metawfr_uuid<str>, ff_key<key>, verbose=False, env='fourfront-cgap')``
72-
7367
.. code-block:: python
7468
7569
from magma_ff import status_metawfr
@@ -90,13 +84,11 @@ Update the status to ``completed`` or ``failed`` for finished runs.
9084
import_metawfr
9185
**************
9286

93-
Creates a new meta-workflow-run json structure for case using specified ``create_metawfr`` function.
87+
The function ``import_metawfr(metawf_uuid<str>, metawfr_uuid<str>, case_uuid<str>, steps_name<str list>, create_metawfr<function>, type<str>, ff_key<key>, post=False, verbose=False)`` allows to create a new meta-workflow-run json structure for case using specified ``create_metawfr`` function.
9488
Imports information from different meta-workflow-run specified as ``metawfr_uuid`` for steps that are listed in ``steps_name``.
9589
Return json structure for the new meta-workflow-run.
9690
Can automatically post the new meta-workflow-run as *MetaWorkflowRun* object on the portal.
9791

98-
``import_metawfr(metawf_uuid<str>, metawfr_uuid<str>, case_uuid<str>, steps_name<str list>, create_metawfr<function>, type<str>, ff_key<key>, post=False, verbose=False)``
99-
10092
.. code-block:: python
10193
10294
from magma_ff import import_metawfr
@@ -121,7 +113,7 @@ Can automatically post the new meta-workflow-run as *MetaWorkflowRun* object on
121113
steps_name = ['workflow_granite-mpileupCounts', 'workflow_gatk-ApplyBQSR-check']
122114
123115
# create_metawfr
124-
# function to use to create a new meta-workflow-run structure from case
116+
# function to create a new meta-workflow-run structure from case
125117
# e.g. create_metawfr.create_metawfr_from_case
126118
127119
metawfr_json = import_metawfr.import_metawfr(metawf_uuid, metawfr_uuid, case_uuid, steps_name, create_metawfr.create_metawfr_from_case, type, ff_key)
@@ -130,9 +122,7 @@ Can automatically post the new meta-workflow-run as *MetaWorkflowRun* object on
130122
reset_metawfr
131123
*************
132124

133-
Re-set workflow-runs in meta-workflow-run that correspond to a step defined in ``step_name`` and with status in ``status``.
134-
135-
``reset_status(metawfr_uuid<str>, status<str | str list>, step_name<str | str list>, ff_key<key>, verbose=False)``
125+
The function ``reset_status(metawfr_uuid<str>, status<str | str list>, step_name<str | str list>, ff_key<key>, verbose=False)`` allows to re-set workflow-runs in meta-workflow-run that correspond to a step defined in ``step_name`` and with status in ``status``.
136126

137127
.. code-block:: python
138128

0 commit comments

Comments
 (0)