Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
The code template has been replaced by functionality from the ruffus.cmdline
module.
This provides a wrapper around the standard python argparse and the deprecated
2.6 optparse.
The following 5 lines of code allow your script to support the usual set of
Ruffus functionality, including printing out the pipeline status in text or
graphical format, running parts or the entirety of the pipeline, using a named
rather than the default automatic history file, etc.
from ruffus import *
parser = cmdline.get_argparse(description='WHAT DOES THIS PIPELINE DO?')
# <<<---- add your own command line options like --input_file here
#parser.add_argument("--input_file")
options = parser.parse_args()
# logger which can be passed to multiprocessing ruffus tasks
logger, logger_mutex = cmdline.setup_logging (__name__, options.log_file, options.verbose)
# <<<---- pipelined functions go here
cmdline.run (options)
Provides these predefined options:
--verbose
--version
--log_file
-T, --target_tasks
-j, --jobs
-n, --just_print
--flowchart
--key_legend_in_graph
--draw_graph_horizontally
--flowchart_format
--forced_tasks
--touch_files_only
--checksum_file_name
--recreate_database
Original comment by bunbu...@gmail.com
on 16 Dec 2013 at 7:35
Original issue reported on code.google.com by
john.ma...@locusdev.net
on 23 Jan 2012 at 7:49