# HG changeset patch # User crs4 # Date 1382697573 14400 # Node ID 13f806b784836642ea964abdee0c7e1899e048f4 # Parent 2dcf5873f1b17acc6ea42ad53f601ac5edd6c7e0 Add Boost requirement. diff -r 2dcf5873f1b1 -r 13f806b78483 mugsy.py --- a/mugsy.py Mon Sep 09 05:40:19 2013 -0400 +++ b/mugsy.py Fri Oct 25 06:39:33 2013 -0400 @@ -13,7 +13,6 @@ import tempfile def __main__(): - """ main function """ parser = optparse.OptionParser() parser.add_option('-r', dest='reference', help='reference FASTA file') parser.add_option('-c', dest='contigs', help='contigs FASTA file') @@ -24,13 +23,13 @@ (options, args) = parser.parse_args() if len(args) > 0: parser.error('Wrong number of arguments') - + logfile = options.logfile wd = tempfile.mkdtemp() try: command = "mugsy --directory %s --prefix %s --log %s %s %s" % (wd, options.prefix, options.mugsylog, options.reference, options.contigs) print 'Mugsy command to be executed:\n ' + command - + log = open(logfile, 'w') if logfile else sys.stdout try: subprocess.check_call(command, stderr=log, shell=True) # need to redirect stderr because mugsy writes its logging info there @@ -38,7 +37,7 @@ if log != sys.stdout: log.close() print 'Mugsy executed!' - + shutil.move(os.path.join(wd, options.prefix + '.maf'), options.maf) finally: shutil.rmtree(wd) diff -r 2dcf5873f1b1 -r 13f806b78483 mugsy.xml --- a/mugsy.xml Mon Sep 09 05:40:19 2013 -0400 +++ b/mugsy.xml Fri Oct 25 06:39:33 2013 -0400 @@ -1,6 +1,7 @@ multiple whole genome aligner + boost mugsy