Skip to content

Commit

Permalink
Merge pull request #6613 from RZ9082/mapseq-dm
Browse files Browse the repository at this point in the history
Update MAPseq DM
  • Loading branch information
bgruening authored Dec 6, 2024
2 parents 63179f3 + 24cbe66 commit abbc840
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
2 changes: 1 addition & 1 deletion data_managers/data_manager_mapseq/data_manager/macros.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<macros>
<token name="@TOOL_VERSION@">1.1</token>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@VERSION_SUFFIX@">2</token>
<token name="@PROFILE@">22.05</token>
<xml name="requirements">
<requirements>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,37 @@
<![CDATA[
python '$__tool_directory__/data_manager_fetch_mapseq_db.py'
--out '${out_file}'
--version '${version}'
--version '${select_version.version}'
--database-type '${database_type}'
$test_data_manager_v5
$test_data_manager_v6
]]>
</command>
<inputs>
<!-- <param name="test_data_manager" type="hidden" /> -->
<param name="test_data_manager_v5" type="boolean" truevalue="--test" falsevalue="" checked="False" label="Download minimal test DB and create mock data table entry for v5." />
<param name="test_data_manager_v6" type="boolean" truevalue="--test" falsevalue="" checked="False" label="Download minimal test DB and create mock data table entry for v6." />

<param name="database_type" type="select" multiple="false" label="Database Type">
<option value="mgnify_v6_lsu">MGnify LSU (v6.0)</option>
<option value="mgnify_v6_ssu">MGnify SSU (v6.0)</option>
<option value="mgnify_v6_its_itsonedb">MGnify ITS ITSonedb (v6.0)</option>
<option value="mgnify_v6_its_unite">MGnify ITS UNITE (v6.0)</option>
<option value="mgnify_v6_pr2">MGnify PR2 (v6.0)</option>
<option value="mgnify_v5_lsu">MGnify LSU (v5.0.7)</option>
<option value="mgnify_v5_ssu">MGnify SSU (v5.0.7)</option>
<option value="mgnify_v5_its_itsonedb">MGnify ITS ITSonedb (v5.0.7)</option>
<option value="mgnify_v5_its_unite">MGnify ITS UNITE (v5.0.7)</option>
</param>

<!-- <param name="test_data_manager" type="text" value=""/> -->
<param argument="--version" type="text" value="6.0" help="Check MGnify GitHub (https://github.com/EBI-Metagenomics/amplicon-pipeline) for the version."/>
<conditional name="select_version">
<param argument="--version" type="select" label="Select MGnify version">
<option value="5.0">v5.0</option>
<option value="6.0">v6.0</option>
</param>
<when value="5.0">
<param name="database_type" type="select" multiple="false" label="Database Type">
<option value="mgnify_v5_lsu">MGnify LSU (v5.0.7)</option>
<option value="mgnify_v5_ssu">MGnify SSU (v5.0.7)</option>
<option value="mgnify_v5_its_itsonedb">MGnify ITS ITSonedb (v5.0.7)</option>
<option value="mgnify_v5_its_unite">MGnify ITS UNITE (v5.0.7)</option>
</param>
</when>
<when value="6.0">
<param name="database_type" type="select" multiple="false" label="Database Type">
<option value="mgnify_v6_lsu">MGnify LSU (v6.0)</option>
<option value="mgnify_v6_ssu">MGnify SSU (v6.0)</option>
<option value="mgnify_v6_its_itsonedb">MGnify ITS ITSonedb (v6.0)</option>
<option value="mgnify_v6_its_unite">MGnify ITS UNITE (v6.0)</option>
<option value="mgnify_v6_pr2">MGnify PR2 (v6.0)</option>
</param>
</when>
</conditional>
</inputs>
<outputs>
<data format="data_manager_json" name="out_file" />
Expand All @@ -50,17 +56,6 @@
</assert_contents>
</output>
</test>
<test expect_num_outputs="1">
<param name="test_data_manager_v6" value="--test"/>
<param name="version" value="6.0"/>
<param name="database_type" value="mgnify_v6_pr2"/>
<output name="out_file">
<assert_contents>
<has_text text="mgnify_v6_pr2"/>
<has_text text="6.0"/>
</assert_contents>
</output>
</test>
</tests>
<help>
Downloads preformatted DBs form MGnify that can be used for mapseq.
Expand Down

0 comments on commit abbc840

Please sign in to comment.