# 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 @@
-
- Runs Breseq software on a set of fastq files
-
-
- breseq
-
-
-
- breseq_wrapper.py
-
- $outfile
- $outfile.files_path
-
- --num-processors \${GALAXY_SLOTS:-4}
-
- #if str($reference.source) == "history":
- #for $i, $s in enumerate( $reference.ref_series )
- -r $s.own_genome
- #end for
- #else:
- -r $reference.fixed_genome.fields.path
- #end if
- #for $i, $s in enumerate( $read_series )
- ${s.input}
- #end for
-
- #if str($polymorphism.selection) == "yes":
- --polymorphism-prediction
- --polymorphism-reject-indel-homopolymer-length $polymorphism.indel_homopolymer_length
- --polymorphism-reject-surrounding-homopolymer-length $polymorphism.surrounding_homopolymer_length
- --polymorphism-minimum-coverage-each-strand $polymorphism.strand_coverage
- --polymorphism-bias-cutoff $polymorphism.bias_pvalue
- #end if
-
- #if str($junction_reference.selection) == "yes":
- #for $i, $s in enumerate( $junction_reference.j_series )
- --junction-only-reference $s.jc_genome
- #end for
- #end if
-
- ${cnv_evidence}
-
- -b $minqvalue
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-**Breseq**
-
-Breseq_ is a computational pipeline for finding mutations relative to a reference sequence in short-read DNA re-sequencing data for microbial sized genomes.
-
-.. _Breseq: http://barricklab.org/twiki/bin/view/Lab/ToolsBacterialGenomeResequencing
-
-------
-
-**Inputs**
-
-Breseq accepts files in FASTQ format. It does not take pair-end information into account.
-
-You can either run in clonal (consensus) mode or search for polymorphisms in a population.
-
-You can also select an external sequence (eg. a transposon) to detect for insertions or horizontal transfer.
-
-
-------
-
-**Outputs**
-
-Breseq outputs a number of files. These are all condensed in a single zipped file.
-
-It contains output files with the final results, accessible through ``output/index.html``
-
-It also contains data files with accessory data, including:
-
-- ``data/reference.fasta`` (file with reference genome: can be used in eg. IGV browser)
-- ``data/reference.gff`` (file with genomic annotations: can be used in eg. IGV browser)
-- ``data/areference.bam`` (file with read alignments: can be used in eg. IGV browser)
-- ``data/unmatched.*`` (files with read that failed to align: can be used to build an assembly or to eg. blast against NCBI)
-
-
-
-
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
-
-
-