# HG changeset patch # User dsobral # Date 1520095622 18000 # Node ID b5cbe8152d65d656a41598a7b5617297d480f540 # Parent 66d27a0c2b3cfa3a4548022b6662eac6d1bfc65f Uploaded diff -r 66d27a0c2b3c -r b5cbe8152d65 breseq.xml --- a/breseq.xml Sat Mar 03 11:46:10 2018 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,160 +0,0 @@ - - diff -r 66d27a0c2b3c -r b5cbe8152d65 breseq_wrapper.py --- a/breseq_wrapper.py Sat Mar 03 11:46:10 2018 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,73 +0,0 @@ -# -*- coding: utf-8 -*- - -from __future__ import print_function -import sys -import os -import shutil -from subprocess import call -from glob import glob - -""" -Expected input format: - ./thiscript output_file output_folder zipfile (args) -""" - - -def fail(exitcode): - sys.stderr.write("Breseq did not finish successfully\n") - sys.stderr.write("Exit code was: {0}\n".format(exitcode)) - sys.exit(1) - - -def main(args): - output, outdir = args[1:3] - cmd = ["breseq"] + args[3:] - - returncode = call(cmd) - - if returncode != 0: - fail(returncode) - - # the short HTML report - summary = "output/summary.html" - if not os.path.isfile(summary): - fail(returncode) - - # Data will be in the zipfile together will all the content of "output" - shutil.move("data", "output/") - - if not os.path.isfile(outdir): - os.mkdir(outdir) - - # Zip the whole folder - shutil.make_archive("results", "zip", os.path.dirname(outdir), "output/") - shutil.move("results.zip", outdir) - - shutil.copy(summary, output) - - # move all the files needed for preview of HTML - for file in glob("output/*"): - dest = file.split("/", 1)[1] - # Folder "data" only needs to go in the zipfile not the HTML preview - if file == "data": - continue - - shutil.move(file, os.path.join(outdir, dest)) - - -def usage(): - err = sys.stderr - err.write("Usage:\n") - err.write(" {0} output_filename output_folder [args]\n".format( - sys.argv[0])) - sys.exit(1) - -if __name__ == "__main__": - args = sys.argv - - if len(args) <= 3: - usage() - - main(args) - -# vim: ai sts=4 et sw=4 diff -r 66d27a0c2b3c -r b5cbe8152d65 tool-data/genbank_files.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/genbank_files.loc.sample Sat Mar 03 11:47:02 2018 -0500 @@ -0,0 +1,4 @@ +#This configures genbank files available for specific galaxy tools (eg. breseq) +#\t\t\t +#ecoliMC4100 ecoliMC4100 E. coli MC4100 /afs/igc.gulbenkian.pt/folders/UBI/PROJECTS/GALAXY/genomes/genbank/NC_012759.1_BW2952.gb +#ecoliMG1655 ecoliMG1655 E. coli MG1655 /afs/igc.gulbenkian.pt/folders/UBI/PROJECTS/GALAXY/genomes/genbank/NC_012759.1_BW2952.gb diff -r 66d27a0c2b3c -r b5cbe8152d65 tool_data_table_conf.xml.sample --- a/tool_data_table_conf.xml.sample Sat Mar 03 11:46:10 2018 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - value, dbkey, name, path - -
-