Skip to content

Commit

Permalink
Add biotools to CAT (galaxyproject#5763)
Browse files Browse the repository at this point in the history
* Add biotools to CAT

* Fix some linting error

* Try to fix tests
  • Loading branch information
bebatut authored Feb 16, 2024
1 parent 06828a4 commit 47be73f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions tools/cat/cat_add_names.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<expand macro="version_command" />
<command detect_errors="exit_code"><![CDATA[
Expand Down
9 changes: 5 additions & 4 deletions tools/cat/cat_bins.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<expand macro="version_command" />
<command detect_errors="exit_code"><![CDATA[
Expand Down Expand Up @@ -51,7 +52,7 @@
<expand macro="outputs" />
</outputs>
<tests>
<test>
<test expect_num_outputs="1">
<param name="mags" ftype="fasta" value="genome2.fna"/>
<expand macro="test_catdb"/>
<param name="select_outputs" value="bin2classification"/>
Expand All @@ -61,7 +62,7 @@
</assert_contents>
</output>
</test>
<test>
<test expect_num_outputs="1">
<param name="mags" ftype="fasta" value="genome3.fna"/>
<expand macro="test_catdb"/>
<param name="select_outputs" value="bin2classification"/>
Expand All @@ -71,7 +72,7 @@
</assert_contents>
</output>
</test>
<test>
<test expect_num_outputs="1">
<param name="mags" ftype="fasta" value="genome2.fna,genome3.fna"/>
<expand macro="test_catdb"/>
<param name="select_outputs" value="bin2classification"/>
Expand All @@ -82,7 +83,7 @@
</assert_contents>
</output>
</test>
<test>
<test expect_num_outputs="4">
<param name="mags" ftype="fasta" value="genome2.fna,genome3.fna"/>
<expand macro="test_catdb"/>
<param name="select_outputs" value="bin2classification"/>
Expand Down
5 changes: 3 additions & 2 deletions tools/cat/cat_contigs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<expand macro="version_command" />
<command detect_errors="exit_code"><![CDATA[
Expand Down Expand Up @@ -30,7 +31,7 @@
<expand macro="outputs" />
</outputs>
<tests>
<test>
<test expect_num_outputs="1">
<param name="contigs_fasta" ftype="fasta" value="contigs.fasta"/>
<expand macro="test_catdb"/>
<param name="select_outputs" value="contig2classification"/>
Expand All @@ -40,7 +41,7 @@
</assert_contents>
</output>
</test>
<test>
<test expect_num_outputs="4">
<param name="contigs_fasta" ftype="fasta" value="contigs.fasta"/>
<expand macro="test_catdb"/>
<param name="select_outputs" value="predicted_proteins_faa"/>
Expand Down
1 change: 1 addition & 0 deletions tools/cat/cat_prepare.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<expand macro="version_command" />
<command detect_errors="exit_code"><![CDATA[
Expand Down
1 change: 1 addition & 0 deletions tools/cat/cat_summarise.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<macros>
<import>macros.xml</import>
</macros>
<expand macro="bio_tools"/>
<expand macro="requirements" />
<expand macro="version_command" />
<command detect_errors="exit_code"><![CDATA[
Expand Down
5 changes: 5 additions & 0 deletions tools/cat/macros.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<macros>
<token name="@TOOL_VERSION@">5.2.3</token>
<token name="@VERSION_SUFFIX@">0</token>
<xml name="bio_tools">
<xrefs>
<xref type="bio.tools">cat_bins</xref>
</xrefs>
</xml>
<xml name="requirements">
<requirements>
<requirement type="package" version="@TOOL_VERSION@">cat</requirement>
Expand Down

0 comments on commit 47be73f

Please sign in to comment.