intermediate_example – A real-world example

See here for an overview and explanations for this code.

The code for this example is in the test subdirectory of the ruffus module:

ruffus/test/intermediate_example.py

The data is at:

ruffus/test/data_for_intermediate_example

Programme options:

--help, -h
show help message

To specify tasks:

--target_tasks TARGET_TASK, -t TARGET_TASK

Target task(s) of pipeline. TARGET_TASK can be

  • gwas_simulation
  • statistical_summary

For example:

intermediate_example.py -t statistical_summary
--forced_tasks FORCED_TASK, -f FORCED_TASK

Pipeline task(s) which will be run even if they are up to date.

For example:

intermediate_example.py -t gwas_simulation
--jobs N, -j N
N specifies number of concurrent process running jobs in parallel

To specify paths:

--gene_data_dir PATH, -d PATH
Directory with input data.
--simulation_data_dir PATH, -s PATH
Directory with input data.
--working_dir PATH, -d PATH
Direction in which ruffus will run.

To print flowchart:

--dependency FILE, -d file
Print a dependency graph of the pipeline that would be executed to FILE, but do not execute it.
--dependency_graph_format FORMAT, -F FORMAT

Format of dependency graph file.

Can be:

* 'ps'
    (PostScript)

* 'svg'

* 'svgz'
    (Structured Vector Graphics),

* 'png'

* 'gif'
     (bitmap  graphics)
--just_print, -n
Print a description of the jobs that would be executed, but do not execute them.

Code: