comparison data_manager/genomad_datamanager.xml @ 3:34b729713d0c draft default tip

planemo upload for repository https://github.com/Helmholtz-UFZ/ufz-galaxy-tools/blob/main/data_managers/data_manager_genomad commit fea5692fe5258a520e43b739c5aa4d109756123f
author ufz
date Fri, 13 Jun 2025 20:40:26 +0000
parents 75abfb03b635
children
comparison
equal deleted inserted replaced
2:75abfb03b635 3:34b729713d0c
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <tool id="genomad_build_database" name="geNomad" tool_type="manage_data" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> 2 <tool id="genomad_build_database" name="geNomad" tool_type="manage_data" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
3 <description>database builder</description> 3 <description>database builder</description>
4 <macros> 4 <macros>
5 <token name="@TOOL_VERSION@">1.8.0</token> 5 <token name="@TOOL_VERSION@">1.11.1</token>
6 <token name="@VERSION_SUFFIX@">2</token> 6 <token name="@VERSION_SUFFIX@">0</token>
7 <token name="@PROFILE@">22.01</token> 7 <token name="@PROFILE@">22.01</token>
8 </macros> 8 </macros>
9 <requirements> 9 <requirements>
10 <requirement type="package" version="1.21.4">wget</requirement> 10 <requirement type="package" version="1.21.4">wget</requirement>
11 </requirements> 11 </requirements>
13 set -eo pipefail; 13 set -eo pipefail;
14 wget -O - 14 wget -O -
15 ## #if $version == "test" 15 ## #if $version == "test"
16 ## https://zenodo.org/records/11945948/files/genomad_microdb.tar.gz?download=1 16 ## https://zenodo.org/records/11945948/files/genomad_microdb.tar.gz?download=1
17 ## #else 17 ## #else
18 https://zenodo.org/records/10594875/files/genomad_db_v${version}.tar.gz?download=1 18 https://portal.nersc.gov/genomad/__data__/genomad_db_v${version}.tar.gz
19 ## alternatively https://zenodo.org/records/14886553, but constructing the links is more complicated
19 ## #end if 20 ## #end if
20 | tar -xzv && 21 | tar -xzv &&
21 mkdir -p '$out_file.extra_files_path' && 22 mkdir -p '$out_file.extra_files_path' &&
22 mv genomad_db '$out_file.extra_files_path' && 23 mv genomad_db '$out_file.extra_files_path' &&
23 cp '$dmjson' '$out_file' 24 cp '$dmjson' '$out_file'
36 } 37 }
37 }]]> 38 }]]>
38 </configfile> 39 </configfile>
39 </configfiles> 40 </configfiles>
40 <inputs> 41 <inputs>
41 <param name="version" type="select" multiple="false" label="Database Version" help="Download the chosen version from https://zenodo.org/records/10594875"> 42 <param name="version" type="select" multiple="false" label="Database Version" help="Download the chosen version from https://portal.nersc.gov/genomad/__data__/">
42 <option value="1.7">1.7</option> 43 <option value="1.7">1.7</option>
44 <option value="1.9">1.9</option>
43 <!-- <option value="test">test</option> --> 45 <!-- <option value="test">test</option> -->
44 </param> 46 </param>
45 </inputs> 47 </inputs>
46 <outputs> 48 <outputs>
47 <data name="out_file" format="data_manager_json" /> 49 <data name="out_file" format="data_manager_json" />
48 </outputs> 50 </outputs>
49 <tests> 51 <tests>
50 <test expect_num_outputs="1"> 52 <test expect_num_outputs="1">
51 <param name="version" value="1.7" /> 53 <param name="version" value="1.9" />
52 <output name="out_file"> 54 <output name="out_file">
53 <assert_contents> 55 <assert_contents>
54 <has_text text='"value":"1.7"'/> 56 <has_text text='"value":"1.9"'/>
55 <has_text text='"name":"Version 1.7"'/> 57 <has_text text='"name":"Version 1.9"'/>
56 </assert_contents> 58 </assert_contents>
57 </output> 59 </output>
58 </test> 60 </test>
59 </tests> 61 </tests>
60 <help><![CDATA[ 62 <help><![CDATA[
61 Download and extract geNomad database from https://zenodo.org/records/10594875 63 Download and extract geNomad database from https://portal.nersc.gov/genomad/__data__/
64
65 Check for tool and DB version compatibility here: https://portal.nersc.gov/genomad/__data__/releases.txt
62 ]]></help> 66 ]]></help>
63 <citations> 67 <citations>
64 <citation type="doi">10.1186/gb-2014-15-3-r46</citation> 68 <citation type="doi">10.1186/gb-2014-15-3-r46</citation>
65 </citations> 69 </citations>
66 </tool> 70 </tool>