Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6914 from nsoranzo/remove_value
Allow ``remove_value`` filter on data tables
- Loading branch information
Showing
3 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<tool id="remove_value" name="Remove values from dynamic options" version="0.1.0"> | ||
<command detect_errors="exit_code"><![CDATA[ | ||
echo $choose_value > '$out_file' | ||
]]></command> | ||
<inputs> | ||
<param name="choose_value" type="select"> | ||
<options from_data_table="test_fasta_indexes"> | ||
<!-- contains hg18 and hg19 --> | ||
<filter type="remove_value" value="hg18"/> | ||
<filter type="remove_value" value="hg20"/> | ||
<!-- This doesn't work as we don't have the remaining values like name and path | ||
<filter type="add_value" value="hg20"/> | ||
--> | ||
</options> | ||
</param> | ||
</inputs> | ||
<outputs> | ||
<data name="out_file"/> | ||
</outputs> | ||
<tests> | ||
<test> | ||
<output name="out_file"> | ||
<assert_contents> | ||
<has_line line="hg19" /> | ||
</assert_contents> | ||
</output> | ||
</test> | ||
<test expect_failure="true"> | ||
<param name="choose_value" value="hg18"/> | ||
</test> | ||
</tests> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters