diff data_manager/funannotate.xml @ 4:1c81a82b5b8e draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/data_managers/data_manager_funannotate commit 8341270dd36185ebf59d15282bc79f1215e936a4
author iuc
date Fri, 07 Mar 2025 22:33:21 +0000
parents 0cadd0a04412
children
line wrap: on
line diff
--- a/data_manager/funannotate.xml	Fri Nov 19 15:43:06 2021 +0000
+++ b/data_manager/funannotate.xml	Fri Mar 07 22:33:21 2025 +0000
@@ -1,23 +1,47 @@
-<tool id="data_manager_funannotate" name="Funannotate data manager" version="0.0.3" tool_type="manage_data" profile="20.01">
+<tool id="data_manager_funannotate" name="Funannotate data manager" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" tool_type="manage_data" profile="20.01">
+    <macros>
+        <token name="@TOOL_VERSION@">1.8.15</token>
+        <token name="@VERSION_SUFFIX@">0</token>
+    </macros>
     <requirements>
-        <requirement type="package" version="1.8.9">funannotate</requirement>
-        <requirement type="package" version="2.26.0">requests</requirement>
+        <requirement type="package" version="@TOOL_VERSION@">funannotate</requirement>
     </requirements>
     <version_command>funannotate check --show-versions</version_command>
     <command detect_errors="exit_code"><![CDATA[
-#if $wget:
-    ## Asked for wget, we assume there's a certificate problem on (at least) one
-    ## of the many requested servers, force disable of all checks
-    echo "check_certificate = off" > \$HOME/.wgetrc &&
-#end if
+        #if $wget:
+            ## Asked for wget, we assume there's a certificate problem on (at least) one
+            ## of the many requested servers, force disable of all checks
+            echo "check_certificate = off" > \$HOME/.wgetrc &&
+        #end if
 
-python -u '$__tool_directory__/funannotate.py'
-$partial_data
-$wget
-\$(date +'%Y-%m-%d-%H%M%S')
-'funannotate'
-'${output_file}'
+        funannotate setup
+            -d '$output_file.extra_files_path'
+        #if $partial_data
+            -i merops -b eukaryota
+        #else
+            -b all
+        #end if
+            $wget
+        &&
+        cp '$dmjson' '$output_file'
     ]]></command>
+    <configfiles>
+        <configfile name="dmjson"><![CDATA[
+#from datetime import datetime
+#set version_id=datetime.now().strftime("%Y-%m-%d-%H%M%S")
+    {
+      "data_tables":{
+        "funannotate":[
+          {
+            "value":"$version_id",
+            "description":"Funannotate database $version_id",
+            "format_version":"1.0",
+            "path":"$output_file.extra_files_path"
+          }
+        ]
+      }
+    }]]></configfile>
+    </configfiles>
     <inputs>
         <param name="partial_data" type="hidden" value="" help="Used for testing"/>
         <param name="wget" type="boolean" truevalue="--wget" falsevalue="" checked="False" label="Download using wget" help="Try this if you get certificate errors"/>
@@ -31,7 +55,7 @@
             <output name="output_file">
                 <assert_contents>
                     <has_text text="Funannotate database "/>
-                    <has_text text='"format_version": "1.0"'/>
+                    <has_text text='"format_version":"1.0"'/>
                 </assert_contents>
             </output>
         </test>
@@ -41,7 +65,7 @@
             <output name="output_file">
                 <assert_contents>
                     <has_text text="Funannotate database "/>
-                    <has_text text='"format_version": "1.0"'/>
+                    <has_text text='"format_version":"1.0"'/>
                 </assert_contents>
             </output>
         </test>