Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix docs & add test for discover_datasets sort_by
- order of sort_comp and sort_by was wrong for sort_by in collections - sort_by was missing for data output - adds a test (though we can't check the generated order .. I manually tested with `planemo serve`)
- Loading branch information
1 parent
bb0df4f
commit a98c123
Showing
2 changed files
with
32 additions
and
1 deletion.
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,26 @@ | ||
<tool id="collection_split_on_column" name="collection_split_on_column" version="0.1.0"> | ||
<command> | ||
mkdir outputs; cd outputs; awk '{ print \$2 > (\$1 ".tabular") }' $input1 | ||
</command> | ||
<inputs> | ||
<param name="input1" type="data" label="Input Table" help="Table to split on first column" format="tabular" /> | ||
</inputs> | ||
<outputs> | ||
<collection name="collection_numeric_name" type="list" label="Table split on first column"> | ||
<discover_datasets pattern="__name_and_ext__" sort_by="numeric_name" directory="outputs" /> | ||
</collection> | ||
<collection name="collection_rev_numeric_name" type="list" label="Table split on first column"> | ||
<discover_datasets pattern="__name_and_ext__" sort_by="reverse_numeric_name" directory="outputs" /> | ||
</collection> | ||
<data name="data_numeric_name"> | ||
<discover_datasets pattern="__name_and_ext__" format="tabular" assign_primary_output="true" sort_by="reverse_numeric_name" directory="outputs" visible="true"/> | ||
</data> | ||
</outputs> | ||
<tests> | ||
<test> | ||
<param name="input1" value="tinywga.fam" /> | ||
<output_collection name="collection_numeric_name" type="list" count="11"/> | ||
<output_collection name="collection_rev_numeric_name" type="list" count="11"/> | ||
</test> | ||
</tests> | ||
</tool> |