# HG changeset patch
# User bgruening
# Date 1381825173 14400
# Node ID b942dfd8081909587d74e9ebc08bfe7a573f4a3f
# Parent d26e8aa37ce994de6a662bc4a48adab35210efa3
Uploaded
diff -r d26e8aa37ce9 -r b942dfd80819 antismash.xml
--- a/antismash.xml Mon Oct 14 04:36:52 2013 -0400
+++ b/antismash.xml Tue Oct 15 04:19:33 2013 -0400
@@ -41,7 +41,6 @@
--disable-embl
--outputfolder $outputfolder
-
#echo 'input_tempfile.' + $file_extension#
## leave out the start and end features, it can be easily replaced with Galaxy tools
@@ -53,16 +52,16 @@
## html output
#if 'html' in str($outputs).split(','):
- cp #echo os.path.join($outputfolder, 'index.html')# $html;
+ cp #echo os.path.join($outputfolder, 'index.html')# $html 2>/dev/null;
#end if
## gene clusters
#if 'geneclusterprots_tabular' in str($outputs).split(','):
- cp #echo os.path.join($outputfolder, 'geneclusters.txt')# $geneclusterprots_tabular;
+ cp #echo os.path.join($outputfolder, 'geneclusters.txt')# $geneclusterprots_tabular 2>/dev/null;
#end if
#if 'geneclusterprots_fasta' in str($outputs).split(','):
- cp #echo os.path.join($outputfolder, '*_genecluster_proteins.fa')# $geneclusterprots_fasta;
+ cp #echo os.path.join($outputfolder, '*_genecluster_proteins.fa')# $geneclusterprots_fasta 2>/dev/null;
#end if
@@ -70,7 +69,7 @@
#if 'archive_svgs' in str($outputs).split(','):
cd #echo os.path.join($outputfolder, 'svg')#;
#if $clusterblast:
- tar cfz $archive_svgs *_all.svg genecluster*;
+ tar cfz $archive_svgs *_all.svg genecluster* 2>/dev/null;
#else:
tar cfz $archive_svgs genecluster*;
#end if
@@ -79,12 +78,12 @@
##all files in a archive
#if 'archive' in str($outputs).split(','):
cd $outputfolder;
- tar cf $archive *.zip;
+ tar cf $archive *.zip 2>/dev/null;
#end if
## genbank
#if 'gb' in str($outputs).split(','):
- cat #echo os.path.join($outputfolder, '*.gbk')# > $genbank;
+ cat #echo os.path.join($outputfolder, '*.gbk')# > $genbank 2>/dev/null;
#end if
diff -r d26e8aa37ce9 -r b942dfd80819 src/genecluster_sequence/__init__.py
--- a/src/genecluster_sequence/__init__.py Mon Oct 14 04:36:52 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-
-"""
- antiSMASH 2.0 output plugin to write all cluster proteins to a file (*_genecluster_proteins.fa)
-"""
-import logging
-from os import path
-from antismash import utils
-
-name = "genecluster_proteins"
-short_description = "Ouptut gene clusters as FASTA sequences"
-# Output plugins are sorted by priority, lower numbers get run first
-priority = 9
-
-def write(seq_records, options):
- """Write all cluster proteins to a file
-
- Args:
- seq_records (iterable): An iterable containing Bio.SeqRecords
- options (argparse.Namespace): The options passed to the program
- """
- basename = seq_records[0].id
- output_name = path.join(options.outputfoldername, "%s_genecluster_proteins.fa" % basename)
- logging.debug("Writing seq_records to %r" % output_name)
-
- with open(output_name, 'w+') as handle:
- for seq_record in seq_records:
- clusters = utils.get_cluster_features(seq_record)
- for cluster in clusters:
- clustertype = utils.get_cluster_type(cluster)
- clusternr = utils.get_cluster_number(cluster)
- for feature in utils.get_cluster_cds_features(cluster, seq_record):
- qual = feature.qualifiers
- fasta_header = '>%s:%s %s #%s - %s\n' % (qual['locus_tag'][0], qual['protein_id'][0], clustertype, clusternr, qual['product'][0])
- handle.write( fasta_header )
- handle.write( '%s\n' % qual['translation'][0] )
-
-
diff -r d26e8aa37ce9 -r b942dfd80819 tool_dependencies.xml
--- a/tool_dependencies.xml Mon Oct 14 04:36:52 2013 -0400
+++ b/tool_dependencies.xml Tue Oct 15 04:19:33 2013 -0400
@@ -13,7 +13,6 @@
-
@@ -84,7 +83,8 @@
-
+
+
https://bitbucket.org/antismash/antismash2/downloads/antiSMASH2.0.2_macosx.zip
@@ -94,6 +94,43 @@
$INSTALL_DIR/run_antismash.py
+
+ https://raw.github.com/bgruening/galaxytools/master/antismash/src/genecluster_sequence/__init__.py
+ $INSTALL_DIR/antismash/output_modules/genecluster_sequence/
+
+ __init__.py
+ $INSTALL_DIR/antismash/output_modules/genecluster_sequence/
+
+
+ sed -i 's/check_prereqs(plugins, options) > 0/False/g' $INSTALL_DIR/run_antismash.py
+ https://bitbucket.org/antismash/antismash2/downloads/clusterblast.tar.gz
+ tar xfvz clusterblast.tar.gz -C $INSTALL_DIR/antismash/generic_modules/clusterblastn>
+
+
+
+
+ https://bitbucket.org/antismash/antismash2/downloads/antiSMASH2.0.2_macosx.zip
+
+ .
+ $INSTALL_DIR
+
+
+ $INSTALL_DIR/run_antismash.py
+
+
+ https://raw.github.com/bgruening/galaxytools/master/antismash/src/genecluster_sequence/__init__.py
+ $INSTALL_DIR/antismash/output_modules/genecluster_sequence/
+
+ __init__.py
+ $INSTALL_DIR/antismash/output_modules/genecluster_sequence/
+
-
- https://bitbucket.org/antismash/antismash2/downloads/antiSMASH2.0.2_macosx.zip
-
- .
- $INSTALL_DIR
-
-
- $INSTALL_DIR/run_antismash.py
-
-
- sed -i 's/check_prereqs(plugins, options) > 0/False/g' $INSTALL_DIR/run_antismash.py
- https://bitbucket.org/antismash/antismash2/downloads/clusterblast.tar.gz
- tar xfvz clusterblast.tar.gz -C $INSTALL_DIR/antismash/generic_modules/clusterblast
-
+
https://bitbucket.org/antismash/antismash2/downloads/antismash-2.0.2.x86_64.tar.bz2
@@ -147,6 +167,7 @@
https://bitbucket.org/antismash/antismash2/downloads/clusterblast.tar.gz
tar xfvz clusterblast.tar.gz -C $INSTALL_DIR/antismash/generic_modules/clusterblast
+
https://bitbucket.org/antismash/antismash2/downloads/antismash-2.0.2.i686.tar.bz2
@@ -157,6 +178,15 @@
$INSTALL_DIR/run_antismash.py
+
+ https://raw.github.com/bgruening/galaxytools/master/antismash/src/genecluster_sequence/__init__.py
+ $INSTALL_DIR/antismash/output_modules/genecluster_sequence/
+
+ __init__.py
+ $INSTALL_DIR/antismash/output_modules/genecluster_sequence/
+