# HG changeset patch # User peterjc # Date 1442829149 14400 # Node ID 5f85301d50bfa42e638381d5cbb754ddab38c7fa # Parent 0f6eb4a750009ee0316a0c3d208c5d960cc9622f v0.0.16, adding new model TTSS-STD-2.0.2.jar diff -r 0f6eb4a75000 -r 5f85301d50bf test-data/four_human_proteins.effectiveT3_std2.tabular --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/four_human_proteins.effectiveT3_std2.tabular Mon Sep 21 05:52:29 2015 -0400 @@ -0,0 +1,5 @@ +#ID Description Score Effective +sp|Q9NSY1|BMP2K_HUMAN BMP-2-inducible protein kinase OS=Homo sapiens GN=BMP2K PE=1 SV=2 1.000000000000000 true +sp|P08100|OPSD_HUMAN Rhodopsin OS=Homo sapiens GN=RHO PE=1 SV=1 0.999238327753953 true +sp|Q9BS26|ERP44_HUMAN Endoplasmic reticulum resident protein 44 OS=Homo sapiens GN=ERP44 PE=1 SV=1 0.000000000000345 false +sp|P06213|INSR_HUMAN Insulin receptor OS=Homo sapiens GN=INSR PE=1 SV=4 0.000000000000000 false diff -r 0f6eb4a75000 -r 5f85301d50bf tool-data/effectiveT3.loc.sample --- a/tool-data/effectiveT3.loc.sample Wed Aug 05 11:04:42 2015 -0400 +++ b/tool-data/effectiveT3.loc.sample Mon Sep 21 05:52:29 2015 -0400 @@ -14,6 +14,7 @@ #e.g. # # /opt/EffectiveT3/TTSS_GUI-1.0.1.jar +# /opt/EffectiveT3/module/TTSS_STD-2.0.2.jar # /opt/EffectiveT3/module/TTSS_STD-1.0.1.jar # /opt/EffectiveT3/module/TTSS_ANIMAL-1.0.1.jar # /opt/EffectiveT3/module/TTSS_PLANT-1.0.1.jar @@ -21,6 +22,7 @@ #See files ../tools/protein_analysis/effectiveT3.* for more details, #and http://effectors.org # -standard Type III Effector prediction with standard set TTSS_STD-1.0.1.jar -animal Type III Effector prediction with animal set TTSS_ANIMAL-1.0.1.jar -plant Type III Effector prediction with plant set TTSS_PLANT-1.0.1.jar +std_2_0_2 Type III Effector prediction with standard set (v2.0.2, Sep 2015) TTSS_STD-2.0.2.jar +standard Type III Effector prediction with standard set (v1.0.1, Aug 2009) TTSS_STD-1.0.1.jar +animal Type III Effector prediction with human/animal-associated set (v1.0.1, Aug 2009) TTSS_ANIMAL-1.0.1.jar +plant Type III Effector prediction with plant-associated set (v1.0.1, Aug 2009) TTSS_PLANT-1.0.1.jar diff -r 0f6eb4a75000 -r 5f85301d50bf tools/effectiveT3/README.rst --- a/tools/effectiveT3/README.rst Wed Aug 05 11:04:42 2015 -0400 +++ b/tools/effectiveT3/README.rst Mon Sep 21 05:52:29 2015 -0400 @@ -27,7 +27,8 @@ ====================== This should be straightforward, Galaxy should automatically download and install -the Jar files for effectiveT3 v1.0.1 and the three models (animal, plant and std). +the Jar files for effectiveT3 v1.0.1 and its associated models (animal, plant and +standard). Manual Installation @@ -73,7 +74,7 @@ Version Changes ------- ---------------------------------------------------------------------- v0.0.7 - Initial public release -v0.0.8 - Include effectiveT3.loc.sample in Tool Shed +v0.0.8 - Include ``effectiveT3.loc.sample`` in Tool Shed v0.0.9 - Check the return code for errors in the XML v0.0.10 - Added unit test v0.0.11 - Automated installation @@ -89,6 +90,10 @@ v0.0.14 - Fixed error handling in ``effectiveT3.py``. v0.0.15 - Reorder XML elements (internal change only). - Planemo for Tool Shed upload (``.shed.yml``, internal change only). +v0.0.16 - Updated URLs to download the tool and models. + - Includes new standard classification model v2.0.2 (Sep 2015) + as the default entry in ``tool-data/effectiveT3.loc`` + - Catch java exception, e.g. if Java too old for ``TTSS-STD-2.0.1.jar`` ======= ====================================================================== @@ -105,12 +110,12 @@ Planemo commands (which requires you have set your Tool Shed access details in ``~/.planemo.yml`` and that you have access rights on the Tool Shed):: - $ planemo shed_update --shed_target testtoolshed --check_diff ~/repositories/pico_galaxy/tools/effectiveT3/ + $ planemo shed_update -t testtoolshed --check_diff ~/repositories/pico_galaxy/tools/effectiveT3/ ... or:: - $ planemo shed_update --shed_target toolshed --check_diff ~/repositories/pico_galaxy/tools/effectiveT3/ + $ planemo shed_update -t toolshed --check_diff ~/repositories/pico_galaxy/tools/effectiveT3/ ... To just build and check the tar ball, use:: diff -r 0f6eb4a75000 -r 5f85301d50bf tools/effectiveT3/effectiveT3.py --- a/tools/effectiveT3/effectiveT3.py Wed Aug 05 11:04:42 2015 -0400 +++ b/tools/effectiveT3/effectiveT3.py Mon Sep 21 05:52:29 2015 -0400 @@ -21,7 +21,7 @@ if "-v" in sys.argv or "--version" in sys.argv: # TODO - Get version of the JAR file dynamically? - print("Wrapper v0.0.14, TTSS_GUI-1.0.1.jar") + print("Wrapper v0.0.16, TTSS_GUI-1.0.1.jar") sys.exit(0) def sys_exit(msg, error_level=1): @@ -83,13 +83,14 @@ # Use .communicate as can get deadlocks with .wait(), stdout, stderr = child.communicate() return_code = child.returncode - if return_code: + if return_code or stderr.startswith("Exception in thread"): cmd_str= " ".join(cmd) # doesn't quote spaces etc if stderr and stdout: sys_exit("Return code %i from command:\n%s\n\n%s\n\n%s" % (return_code, cmd_str, stdout, stderr)) else: sys_exit("Return code %i from command:\n%s\n%s" % (return_code, cmd_str, stderr)) + if not os.path.isdir(effectiveT3_dir): sys_exit("Effective T3 folder not found: %r" % effectiveT3_dir) diff -r 0f6eb4a75000 -r 5f85301d50bf tools/effectiveT3/effectiveT3.xml --- a/tools/effectiveT3/effectiveT3.xml Wed Aug 05 11:04:42 2015 -0400 +++ b/tools/effectiveT3/effectiveT3.xml Mon Sep 21 05:52:29 2015 -0400 @@ -1,4 +1,4 @@ - + Find bacterial effectors in protein sequences effectiveT3 @@ -50,6 +50,13 @@ + + + + + + + diff -r 0f6eb4a75000 -r 5f85301d50bf tools/effectiveT3/tool_dependencies.xml --- a/tools/effectiveT3/tool_dependencies.xml Wed Aug 05 11:04:42 2015 -0400 +++ b/tools/effectiveT3/tool_dependencies.xml Mon Sep 21 05:52:29 2015 -0400 @@ -8,22 +8,24 @@ $INSTALL_DIR - wget http://effectors.org/download/version/TTSS_GUI-1.0.1.jar + wget http://effectors.csb.univie.ac.at/sites/eff/files/others/TTSS_GUI-1.0.1.jar $INSTALL_DIR/module - wget http://effectors.org/download/module/TTSS_ANIMAL-1.0.1.jar + wget http://effectors.csb.univie.ac.at/sites/eff/files/others/TTSS_ANIMAL-1.0.1.jar TTSS_ANIMAL-1.0.1.jar$INSTALL_DIR/module/ - wget http://effectors.org/download/module/TTSS_PLANT-1.0.1.jar + wget http://effectors.csb.univie.ac.at/sites/eff/files/others/TTSS_PLANT-1.0.1.jar TTSS_PLANT-1.0.1.jar$INSTALL_DIR/module/ - wget http://effectors.org/download/module/TTSS_STD-1.0.1.jar + wget http://effectors.csb.univie.ac.at/sites/eff/files/others/TTSS_STD-1.0.1.jar TTSS_STD-1.0.1.jar$INSTALL_DIR/module/ + wget http://effectors.csb.univie.ac.at/sites/eff/files/others/TTSS_STD-2.0.2.jar + TTSS_STD-2.0.2.jar$INSTALL_DIR/module/ -Downloads effectiveT3 v1.0.1 and the three models from http://effectors.org/ +Downloads effectiveT3 v1.0.1 and associated models from http://effectors.org/ aka http://effectors.csb.univie.ac.at/