Skip to content

Commit

Permalink
Merge pull request bgruening#1448 from bernt-matthias/topic/fix-cut
Browse files Browse the repository at this point in the history
Fix cut tool
  • Loading branch information
mvdbeek authored Aug 16, 2024
2 parents d9c5127 + 4973502 commit c2b1677
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 9 additions & 2 deletions tools/text_processing/text_processing/cut.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="tp_cut_tool" name="Advanced Cut" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
<tool id="tp_cut_tool" name="Advanced Cut" version="@TOOL_VERSION@+galaxy2" profile="@PROFILE@">
<description>columns from a table (cut)</description>
<macros>
<import>macros.xml</import>
Expand All @@ -13,10 +13,10 @@
#if $cut_type_options.cut_element != '-f'
'$cut_type_options.list'
#else
'$cut_type_options.colnames_option.list'
#if str($cut_type_options.delimiter) != '':
-d"$cut_type_options.delimiter"
#end if
'$cut_type_options.colnames_option.list'
#end if
'$input'
> '$output'
Expand Down Expand Up @@ -194,7 +194,11 @@
<param name="list" value="1,3,4"/>
<param name="delimiter" value=""/>
<output name="output" file="cut_results1.txt"/>
<assert_command>
<has_text text="-f '1,3,4'"/>
</assert_command>
</test>

<test expect_num_outputs="1">
<param name="input" value="cut1.txt"/>
<conditional name="cut_type_options">
Expand All @@ -207,6 +211,9 @@
</conditional>
<param name="complement" value="--complement" />
<output name="output" file="cut_results2.txt"/>
<assert_command>
<has_text text="-f '2'"/>
</assert_command>
</test>
<test expect_num_outputs="1">
<param name="input" value="cut1.txt"/>
Expand Down
1 change: 0 additions & 1 deletion tools/text_processing/text_processing/sort_rows.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<outputs>
<data name="outfile" format_source="infile" metadata_source="infile"/>
</outputs>
<options sanitize="False"/>
<tests>
<test>
<param name="infile" value="sort_rows1.tabular" ftype="tabular" />
Expand Down

0 comments on commit c2b1677

Please sign in to comment.