Skip to content

Commit

Permalink
Merge pull request galaxyproject#6772 from bernt-matthias/bump/busco-dm
Browse files Browse the repository at this point in the history
Bump and simplify busco data manager
  • Loading branch information
bgruening authored Feb 20, 2025
2 parents bfeaaf8 + 700d5d4 commit 688b851
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 54 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
<tool id="busco_fetcher" name="Busco" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" tool_type="manage_data" profile="20.01">
<description>dataset dowloader</description>
<macros>
<token name="@TOOL_VERSION@">5.4.6</token>
<token name="@TOOL_VERSION@">5.8.0</token>
<token name="@VERSION_SUFFIX@">0</token>
</macros>
<requirements>
<requirement type="package" version="@TOOL_VERSION@">busco</requirement>
</requirements>
<command detect_errors="exit_code"><![CDATA[
python '$__tool_directory__/data_manager.py'
--database '$lineage'
--name $lineage+\$(date +'%Y-%m-%d-%H%M%S')
--json '$out_file'
--version '@TOOL_VERSION@'
mkdir '$out_file.extra_files_path' &&
busco --download_path '$out_file.extra_files_path' --download '$lineage' &&
cp '$dmjson' '$out_file'
]]></command>
<configfiles>
<configfile name="dmjson"><![CDATA[
#from datetime import datetime
{
"data_tables":{
"busco_database":[
{
"value":"$lineage #echo datetime.now().strftime('%Y-%m-%d-%H%M%S')#",
"name":"$lineage #echo datetime.now().strftime('%Y-%m-%d-%H%M%S')#",
"version":"@TOOL_VERSION@",
"path":"$out_file.extra_files_path"
}
]
}
}]]>
</configfile>
</configfiles>
<inputs>
<param name="lineage" type="select" label="Select the lineage to be downloaded">
<option value="all">All</option>
Expand All @@ -31,7 +46,7 @@
<output name="out_file">
<assert_contents>
<has_text text="virus"/>
<has_text text="5.4.6"/>
<has_text text="5.8.0"/>
</assert_contents>
</output>
</test>
Expand Down

This file was deleted.

0 comments on commit 688b851

Please sign in to comment.