annotate eggnog_macros.xml @ 11:5a30ae278db0 draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
author galaxyp
date Mon, 20 Jun 2022 12:49:52 +0000
parents 96cac424c870
children 9d1fbff733cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
1 <?xml version="1.0"?>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
2 <macros>
11
5a30ae278db0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
galaxyp
parents: 8
diff changeset
3 <token name="@TOOL_VERSION@">2.1.8</token>
5a30ae278db0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
galaxyp
parents: 8
diff changeset
4 <token name="@VERSION_SUFFIX@">2.1.8</token>
8
96cac424c870 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit e45c15081260025e470d23975ef5a734d3f8fc66"
galaxyp
parents: 7
diff changeset
5 <token name="@EGGNOG_DB_VERSION@">5.0.2</token>
7
4e4c6329f6cd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit fd234f7532b34a1b6ced0d3ac53a8f42348e23f7"
galaxyp
parents: 6
diff changeset
6 <!--
8
96cac424c870 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit e45c15081260025e470d23975ef5a734d3f8fc66"
galaxyp
parents: 7
diff changeset
7 # DB versionning was super confusing for eggnog-mapper 2.0.x:
7
4e4c6329f6cd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit fd234f7532b34a1b6ced0d3ac53a8f42348e23f7"
galaxyp
parents: 6
diff changeset
8 # eggnog-mapper 1.* needed a db v4.5 (based on eggnog v4.5)
8
96cac424c870 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit e45c15081260025e470d23975ef5a734d3f8fc66"
galaxyp
parents: 7
diff changeset
9 # eggnog-mapper 2.x needed a db v2.0 (based on eggnog v5.0)
96cac424c870 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit e45c15081260025e470d23975ef5a734d3f8fc66"
galaxyp
parents: 7
diff changeset
10 # (db v4.5 are not compatible with eggnog-mapper 2.0)
96cac424c870 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit e45c15081260025e470d23975ef5a734d3f8fc66"
galaxyp
parents: 7
diff changeset
11 # Starting with eggnog-mapper 2.1.* db versioning looks better: 2.1.0 requires db v5.0.2
7
4e4c6329f6cd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit fd234f7532b34a1b6ced0d3ac53a8f42348e23f7"
galaxyp
parents: 6
diff changeset
12 -->
8
96cac424c870 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit e45c15081260025e470d23975ef5a734d3f8fc66"
galaxyp
parents: 7
diff changeset
13 <token name="@IDX_VERSION@">5.0.2</token>
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
14 <xml name="citations">
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
15 <citations>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
16 <citation type="doi">10.1093/nar/gkv1248</citation>
6
3cb37af59360 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 2200885b5049b2d952959001c8a9b5ae5c62bee5"
galaxyp
parents: 5
diff changeset
17 <citation type="doi">10.1093/molbev/msx148</citation>
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
18 </citations>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
19 </xml>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
20 <xml name="requirements">
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
21 <requirements>
11
5a30ae278db0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
galaxyp
parents: 8
diff changeset
22 <requirement type="package" version="@TOOL_VERSION@">eggnog-mapper</requirement>
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
23 </requirements>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
24 </xml>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
25 <xml name="version_command">
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
26 <version_command>emapper.py --version</version_command>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
27 </xml>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
28 <xml name="data_manager_params">
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
29 <param name="test" type="hidden" value="false" />
6
3cb37af59360 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 2200885b5049b2d952959001c8a9b5ae5c62bee5"
galaxyp
parents: 5
diff changeset
30 <param name="diamond_database" type="boolean" truevalue="" falsevalue="-D" checked="true" label="Install the diamond database" help="Takes ~9Gb, you most probably want it."/>
8
96cac424c870 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit e45c15081260025e470d23975ef5a734d3f8fc66"
galaxyp
parents: 7
diff changeset
31 <param name="mmseqs_database" type="boolean" truevalue="-M" falsevalue="" checked="true" label="Install the MMseqs2 database" help="Required for mmseqs seed ortholog search mode. Takes ~11Gb, you most probably want it."/>
96cac424c870 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit e45c15081260025e470d23975ef5a734d3f8fc66"
galaxyp
parents: 7
diff changeset
32 <param name="pfam_database" type="boolean" truevalue="-P" falsevalue="" checked="true" label="Install the Pfam database" help="Rquired for de novo annotation or realignment. Takes ~3Gb, you most probably want it."/>
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
33 </xml>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
34 <xml name="data_manager_outputs">
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
35 <outputs>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
36 <data name="out_file" format="data_manager_json" label="${tool.name}"/>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
37 </outputs>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
38 </xml>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
39 <token name="@DOWNLOAD_CMD@"><![CDATA[
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
40 ## tool should set install_path
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
41 #if $test == 'true'
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
42 #import os.path
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
43 #set $install_path = $os.path.join($os.path.dirname($__tool_directory__), 'test-data/cached_locally')
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
44 #end if
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
45 mkdir -p '${install_path}' &&
6
3cb37af59360 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 2200885b5049b2d952959001c8a9b5ae5c62bee5"
galaxyp
parents: 5
diff changeset
46 download_eggnog_data.py
8
96cac424c870 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit e45c15081260025e470d23975ef5a734d3f8fc66"
galaxyp
parents: 7
diff changeset
47 $diamond_database $mmseqs_database $pfam_database -y -q
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
48 #if $test == 'true'
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
49 -s
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
50 #end if
6
3cb37af59360 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 2200885b5049b2d952959001c8a9b5ae5c62bee5"
galaxyp
parents: 5
diff changeset
51 --data_dir '$install_path' &&
3cb37af59360 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 2200885b5049b2d952959001c8a9b5ae5c62bee5"
galaxyp
parents: 5
diff changeset
52 python '${__tool_directory__}/data_manager_eggnog.py' --config_file '$out_file' --install_path '$install_path'
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
53 ]]></token>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
54 <xml name="data_manager_test">
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
55 <test>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
56 <param name="test" value="true"/>
6
3cb37af59360 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 2200885b5049b2d952959001c8a9b5ae5c62bee5"
galaxyp
parents: 5
diff changeset
57 <param name="diamond_database" value="true"/>
3cb37af59360 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 2200885b5049b2d952959001c8a9b5ae5c62bee5"
galaxyp
parents: 5
diff changeset
58 <yield />
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
59 <output name="out_file">
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
60 <assert_contents>
7
4e4c6329f6cd "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit fd234f7532b34a1b6ced0d3ac53a8f42348e23f7"
galaxyp
parents: 6
diff changeset
61 <has_text text="eggnog_mapper_db_versioned" />
6
3cb37af59360 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 2200885b5049b2d952959001c8a9b5ae5c62bee5"
galaxyp
parents: 5
diff changeset
62 <has_text text="@EGGNOG_DB_VERSION@" />
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
63 </assert_contents>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
64 </output>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
65 </test>
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
66 </xml>
11
5a30ae278db0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
galaxyp
parents: 8
diff changeset
67 <xml name="stdout_assertion">
5a30ae278db0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
galaxyp
parents: 8
diff changeset
68 <assert_stdout>
5a30ae278db0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
galaxyp
parents: 8
diff changeset
69 <has_line line="# emapper-@TOOL_VERSION@"/>
5a30ae278db0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
galaxyp
parents: 8
diff changeset
70 <has_line line="FINISHED"/>
5a30ae278db0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
galaxyp
parents: 8
diff changeset
71 </assert_stdout>
5a30ae278db0 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit 75035b2919ce95fa8d3b785d86c7c7c9da531db2
galaxyp
parents: 8
diff changeset
72 </xml>
5
a5a3bdd0954b "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper commit ba81f4bfe31157aa6b986e81d5e4405ae1372b3b"
galaxyp
parents:
diff changeset
73 </macros>