Mercurial > repos > ufz > phabox_build_database
changeset 0:6521d8d6dbdf draft
planemo upload for repository https://github.com/Helmholtz-UFZ/ufz-galaxy-tools/blob/main/data_managers/data_manager_phabox commit 3c8e23e1dea22f625fb6f77ae61e1f4b605aaae2
author | ufz |
---|---|
date | Tue, 12 Nov 2024 09:30:25 +0000 |
parents | |
children | 334bd61d216d |
files | data_manager/phabox_datamanager.xml data_manager_conf.xml tool-data/phabox.loc.sample tool_data_table_conf.xml.sample |
diffstat | 4 files changed, 82 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data_manager/phabox_datamanager.xml Tue Nov 12 09:30:25 2024 +0000 @@ -0,0 +1,54 @@ +<tool id="phabox_build_database" name="PhaBOX" tool_type="manage_data" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> + <description>database builder</description> + <macros> + <token name="@TOOL_VERSION@">2.1.5</token> + <token name="@DB_VERSION@">2</token> + <token name="@VERSION_SUFFIX@">0</token> + <token name="@PROFILE@">22.01</token> + </macros> + <requirements> + <requirement type="package" version="6.0">unzip</requirement> + <requirement type="package" version="1.21.4">wget</requirement> + </requirements> + <command detect_errors="exit_code"><![CDATA[ + wget https://github.com/KennthShang/PhaBOX/releases/download/v2/phabox_db_v@DB_VERSION@.zip && + unzip phabox_db_v@DB_VERSION@.zip && + cp '$dmjson' '$out_file' + ]]></command> + <configfiles> + <configfile name="dmjson"><![CDATA[ +{ + "data_tables":{ + "phabox":[ + { + "path":"phabox_db_v@DB_VERSION@", + "name":"Version @DB_VERSION@", + "version":"@DB_VERSION@", + "value":"@DB_VERSION@" + } + ] + } +}]]> + </configfile> + </configfiles> + <inputs/> + <outputs> + <data name="out_file" format="data_manager_json" /> + </outputs> + <tests> + <test expect_num_outputs="1"> + <output name="out_file"> + <assert_contents> + <has_text text='"value":"@DB_VERSION@"'/> + <has_text text='"name":"Version 2'/> + </assert_contents> + </output> + </test> + </tests> + <help><![CDATA[ +Download and extract PhaBOX reference data. The current tool version is used for versioning. For the user only the major version is shown + ]]></help> + <citations> + <citation type="doi">10.1093/bioadv/vbad101</citation> + </citations> +</tool>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data_manager_conf.xml Tue Nov 12 09:30:25 2024 +0000 @@ -0,0 +1,19 @@ +<data_managers> + <data_manager tool_file="data_manager/phabox_datamanager.xml" id="phabox_build_database"> + <data_table name="phabox"> + <output> + <column name="value"/> + <column name="name"/> + <column name="version"/> + <column name="path" output_ref="out_file"> + <move type="directory"> + <source>${path}</source> + <target base="${GALAXY_DATA_MANAGER_DATA_PATH}">phabox/${path}</target> + </move> + <value_translation>${GALAXY_DATA_MANAGER_DATA_PATH}/phabox/${path}</value_translation> + <value_translation type="function">abspath</value_translation> + </column> + </output> + </data_table> + </data_manager> +</data_managers>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/phabox.loc.sample Tue Nov 12 09:30:25 2024 +0000 @@ -0,0 +1,2 @@ +# Format: +# value name version path \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_data_table_conf.xml.sample Tue Nov 12 09:30:25 2024 +0000 @@ -0,0 +1,7 @@ +<tables> + <!-- phabox reference data --> + <table name="phabox" comment_char="#"> + <columns>value, name, version, path</columns> + <file path="tool-data/phabox.loc" /> + </table> +</tables>