Skip to content

Commit

Permalink
patch combined_kreports.xml (galaxyproject#6182)
Browse files Browse the repository at this point in the history
* patch combined_kreports.xml

* insert assert_contents into test 3

* use asserts for combine_kreports.xml

* Update combine_kreports.xml

---------

Co-authored-by: mthang <[email protected]>
Co-authored-by: Björn Grüning <[email protected]>
  • Loading branch information
3 people authored and nilchia committed Aug 24, 2024
1 parent 183e948 commit e9e004c
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions tools/krakentools/combine_kreports.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="krakentools_combine_kreports" name="Krakentools: Combine multiple Kraken reports" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
<tool id="krakentools_combine_kreports" name="Krakentools: Combine multiple Kraken reports" version="@TOOL_VERSION@+galaxy2" profile="@PROFILE@">
<description>into a combined report file</description>
<macros>
<import>macros.xml</import>
Expand All @@ -7,12 +7,24 @@
<expand macro="requirements"/>
<expand macro="version"/>
<command detect_errors="exit_code"><![CDATA[
combine_kreports.py
--reports
#for $report in $reports
'$report'
#if $display_headers:
#for $report in $reports
ln -s '$report' '${report.element_identifier}' &&
#end for
--output '$output'
#end if
combine_kreports.py
--reports
#if $display_headers:
#for $report in $reports
'${report.element_identifier}'
#end for
#else:
#for $report in $reports
'${report}'
#end for
#end if
--output '$output'
$display_headers
$only_combined
]]></command>
Expand All @@ -35,6 +47,19 @@ combine_kreports.py
<param name="display_headers" value="--no-headers"/>
<param name="only_combined" value="--only-combined"/>
<output name="output" file="only_combined_count.tabular"/>
</test>
<test>
<param name="reports" value="beta_kreport_1.tabular,beta_kreport_3.tabular"/>
<param name="display_headers" value="--display-headers"/>
<param name="only_combined" value="--only-combined"/>
<output name="output">
<assert_contents>
<has_text text="#Number of Samples:"/>
<has_text text="#S1"/>
<has_text text="#S2"/>
<has_text text="#perc"/>
</assert_contents>
</output>
</test>
</tests>
<help><![CDATA[
Expand Down

0 comments on commit e9e004c

Please sign in to comment.