The ruffus module is a lightweight way to add support for running computational pipelines.
Decorator | Syntax | |
---|---|---|
@split (Manual) | @split ( tasks_or_file_names, output_files, [extra_parameters,...] ) | |
@transform (Manual) | ||
@merge (Manual) | @merge (tasks_or_file_names, output, [extra_parameters,...] ) | |
@posttask (Manual) | @posttask ( signal_task_completion_function )
|
For a graphical flowchart in jpg, svg, dot, png, ps, gif formats:
pipeline_printout_graph ( open("flowchart.svg", "w"),
"svg",
list_of_target_tasks)
For a text printout of all jobs
pipeline_printout(sys.stdout, list_of_target_tasks)
pipeline_run(list_of_target_tasks, [list_of_tasks_forced_to_rerun, multiprocess = N_PARALLEL_JOBS])
See the Simple Tutorial for a quick introduction on how to add support for ruffus.