changeset 3:fffa1ae330ae draft

Use $GALAXY_SLOTS instead of $PROKKA_SITE_OPTIONS. Upgrade Barrnap dependency to v. 0.3. Upgrade Infernal dependency to v. 1.1. Depend on package_gnu_parallel_20131122 (requires Galaxy release_2013.11.04 or later).
author crs4
date Mon, 09 Dec 2013 04:58:14 -0500
parents 4bafaa074484
children 5c0030f52b83
files prokka.xml readme.rst tool_dependencies.xml
diffstat 3 files changed, 38 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/prokka.xml	Fri Oct 25 08:59:51 2013 -0400
+++ b/prokka.xml	Mon Dec 09 04:58:14 2013 -0500
@@ -1,4 +1,4 @@
-<tool id="prokka" name="Prokka" version="1.1.0">
+<tool id="prokka" name="Prokka" version="1.2.0">
   <description>prokaryotic genome annotation</description>
   <requirements>
     <requirement type="package" version="2.2.28">blast+</requirement>
@@ -6,15 +6,15 @@
     <requirement type="package" version="1.2.36">aragorn</requirement>
     <requirement type="package" version="2.60">prodigal</requirement>
     <requirement type="binary">tbl2asn</requirement>
-    <requirement type="binary">parallel</requirement>
-    <requirement type="package" version="0.2">barrnap</requirement>
-    <requirement type="package" version="1.1rc4">infernal</requirement>
+    <requirement type="package" version="20131122">gnu_parallel</requirement>
+    <requirement type="package" version="0.3">barrnap</requirement>
+    <requirement type="package" version="1.1">infernal</requirement>
     <requirement type="package" version="1.7">prokka</requirement>
   </requirements>
   <version_command>prokka --version</version_command>
   <command>
     prokka
-    \${PROKKA_SITE_OPTIONS:---cpus 8}
+    --cpus \${GALAXY_SLOTS:-8}
     --quiet ## to avoid non-error messages written to stderr
     --outdir outdir --prefix prokka ## used in outputs section
     #if $locustag
--- a/readme.rst	Fri Oct 25 08:59:51 2013 -0400
+++ b/readme.rst	Mon Dec 09 04:58:14 2013 -0500
@@ -11,25 +11,42 @@
 
 - Perl core modules: File\::Copy, FindBin, Getopt::Long, List::Util, Scalar::Util, Time::Piece, Time::Seconds;
 - Perl modules: Bio::SeqIO from BioPerl_ >= 1.6.900, `XML::Simple`_;
-- `GNU Parallel`_ >= 20130422 is required, but is shipped with Prokka and thus is not managed by the tool dependency system;
 - tbl2asn_ >= 21.0 is required. This dependency is not managed here since versions are increasing very rapidly;
 - SignalP_ >= 3.0 is an optional dependency to find signal peptides. For licensing reasons, it is not used in the tool wrapper.
 
 .. _BioPerl: http://search.cpan.org/dist/BioPerl/
 .. _XML::Simple: http://search.cpan.org/dist/XML-Simple/
-.. _GNU Parallel: http://www.gnu.org/software/parallel/
 .. _tbl2asn: http://www.ncbi.nlm.nih.gov/genbank/tbl2asn2/
 .. _SignalP: http://www.cbs.dtu.dk/services/SignalP/
 
 Configuration
 -------------
 
-Change the PROKKA_SITE_OPTIONS variable in the installed env.sh file to adjust the number of CPUs to use (--cpus).
+If you are using Galaxy release_2013.11.04 or later, this tool will automatically use the number of threads allocated by the job runner according to the configuration of the job destination selected for this tool (see http://wiki.galaxyproject.org/Admin/Config/Jobs ).
+
+If instead you are using an older Galaxy release, you should add a line
+
+  GALAXY_SLOTS=N; export GALAXY_SLOTS
+
+(where N is the number of threads allocated by the job runner) to the file
+
+  <tool_dependencies_dir>/prokka/1.7/crs4/prokka/<hash_string>/env.sh
 
 Version history
 ---------------
 
-- v0.1 (LG): initial release in the toolshed, supports Prokka 1.6.
-- v0.2 (LG): added this readme file, supports Prokka 1.7, and adds dependencies management.
-- v1.1.0: merge the wrappers by CRS4 and Lionel Guy, add COPYING file with MIT license, make all params optional, add gffver param, correctly quote text params in command, use float type for 'evalue' param, describe output files in help, upgrade BLAST+ dependency to version 2.2.28, depend on package_aragorn_1_2_36 instead of trna_prediction, depend on package_prodigal_2_60 instead of prodigal, depend on package_barrnap_0_2 instead of barrnap, add PROKKA_SITE_OPTIONS to env.sh and remove 'cpus' param.
+- Release 3 (prokka 1.2.0): Use $GALAXY_SLOTS instead of $PROKKA_SITE_OPTIONS. Upgrade Barrnap dependency to v. 0.3. Upgrade Infernal dependency to v. 1.1. Depend on package_gnu_parallel_20131122 (requires Galaxy release_2013.11.04 or later).
+- Release 2 (prokka 1.1.0): Merge the wrappers by CRS4 and Lionel Guy. Directly call prokka, remove prokka.py . Add 'locustag', 'increment', 'gffver', 'compliant', 'addgenes', 'genus', 'species', 'strain', 'plasmid', 'gcode', 'usegenus', 'metagenome', 'fast', 'evalue', 'norrna', 'notrna' params. Upgrade BLAST+ dependency to v. 2.2.28. Add dependencies on prodigal and barrnap. Add readme.rst .
+- Release 1 (prokka 1.0.1): Add txt output file. Use a definition list instead of a block quote in <help>. Correct 2 dependency minimum versions.
+- Release 0 (prokka 1.0.0): Initial release in the Tool Shed.
+
+Version history of (now deprecated) Lionel Guy's wrapper:
 
+- prokka 1.1.0: Merge the wrappers by CRS4 and Lionel Guy. Add COPYING file with MIT license. Make all params optional. Add 'gffver' param. Correctly quote text params in command. Use float type for 'evalue' param. Describe output files in help. Upgrade BLAST+ dependency to v. 2.2.28. Depend on package_aragorn_1_2_36 instead of trna_prediction. Depend on package_prodigal_2_60 instead of prodigal. Depend on package_barrnap_0_2 instead of barrnap. Add PROKKA_SITE_OPTIONS to env.sh and remove 'cpus' param.
+- prokka 0.2: Added this readme file. Support Prokka 1.7. Add dependencies management.
+- prokka 0.1: Initial release in the Tool Shed, supports Prokka 1.6.
+
+Development
+-----------
+
+Development is hosted at https://bitbucket.org/crs4/orione-tools . Contributions and bug reports are very welcome!
--- a/tool_dependencies.xml	Fri Oct 25 08:59:51 2013 -0400
+++ b/tool_dependencies.xml	Mon Dec 09 04:58:14 2013 -0500
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <tool_dependency>
   <package name="blast+" version="2.2.28">
-    <repository changeset_revision="ed85ca8e4295" name="package_blast_plus_2_2_28" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" />
+    <repository changeset_revision="23b9ba41ad00" name="package_blast_plus_2_2_28" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" />
   </package>
   <package name="hmmer" version="3.1b1">
     <repository changeset_revision="007c736bf7e8" name="package_hmmer_3_1" owner="lionelguy" toolshed="http://toolshed.g2.bx.psu.edu" />
@@ -12,11 +12,14 @@
   <package name="prodigal" version="2.60">
     <repository changeset_revision="acf0e8b718c9" name="package_prodigal_2_60" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" />
   </package>
-  <package name="barrnap" version="0.2">
-    <repository changeset_revision="8ab7a17861ea" name="package_barrnap_0_2" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" />
+  <package name="gnu_parallel" version="20131122">
+    <repository changeset_revision="0e1e79b3b7db" name="package_gnu_parallel_20131122" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" />
   </package>
-  <package name="infernal" version="1.1rc4">
-    <repository changeset_revision="b9cc978bc83b" name="package_infernal_1_1rc4" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" />
+  <package name="barrnap" version="0.3">
+    <repository changeset_revision="60763b9e2026" name="package_barrnap_0_3" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" />
+  </package>
+  <package name="infernal" version="1.1">
+    <repository changeset_revision="b5c01b683dc9" name="package_infernal_1_1" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" />
   </package>
   <package name="prokka" version="1.7">
     <install version="1.0">
@@ -29,9 +32,6 @@
         <action type="set_environment">
           <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
         </action>
-        <action type="set_environment">
-          <environment_variable action="set_to" name="PROKKA_SITE_OPTIONS">"--cpus 8"</environment_variable>
-        </action>
       </actions>
     </install>
     <readme>
@@ -40,12 +40,9 @@
 Dependencies of Prokka which needs to be installed separately:
 - Perl core modules: File::Copy, FindBin, Getopt::Long, List::Util, Scalar::Util, Time::Piece, Time::Seconds;
 - Perl modules: Bio::SeqIO from BioPerl ( http://search.cpan.org/dist/BioPerl/ ) &gt;= 1.6.900, XML::Simple ( http://search.cpan.org/dist/XML-Simple/ );
-- Prodigal ( http://prodigal.ornl.gov/ ) &gt;= 2.60 ;
-- tbl2asn ( http://www.ncbi.nlm.nih.gov/genbank/tbl2asn2/ ) &gt;= 21.0 ;
-- GNU Parallel ( http://www.gnu.org/software/parallel/ ) &gt;= 20130422 ;
-- Barrnap ( http://www.vicbioinformatics.com/software.barrnap.shtml ) &gt;= 0.1 .
+- tbl2asn ( http://www.ncbi.nlm.nih.gov/genbank/tbl2asn2/ ) &gt;= 21.0 .
 
-Configuration: Change the PROKKA_SITE_OPTIONS variable in the installed env.sh file to adjust the number of CPUs to use (--cpus).
+Configuration: Previously (until Release 2), the PROKKA_SITE_OPTIONS variable in the installed env.sh file was used to adjust the number of CPUs to use (--cpus). This is not used anymore and may be removed.
     </readme>
   </package>
 </tool_dependency>