comparison split_file_on_column.xml @ 3:b60f2452580e draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/split_file_on_column commit af7f8fd0977384f9b4225d414623bf5d6ce23a7e
author bgruening
date Wed, 23 Dec 2015 03:50:48 -0500
parents 90b52d8d6f2c
children 37a53100b67e
comparison
equal deleted inserted replaced
2:90b52d8d6f2c 3:b60f2452580e
3 <requirements> 3 <requirements>
4 <requirement type="package" version="4.1.0">gnu_awk</requirement> 4 <requirement type="package" version="4.1.0">gnu_awk</requirement>
5 </requirements> 5 </requirements>
6 <command> 6 <command>
7 <![CDATA[ 7 <![CDATA[
8 awk -F'\t' '{print > \$$column ".$infile.ext" }' $infile 8 mkdir tmp_out &&
9 awk -F'\t' '{print > "tmp_out/"\$$column".$infile.ext" }' $infile
9 ]]> 10 ]]>
10 </command> 11 </command>
11 <inputs> 12 <inputs>
12 <param format="tabular" name="infile" type="data" label="File to select" /> 13 <param format="tabular" name="infile" type="data" label="File to select" />
13 <param name="column" label="on column" type="data_column" data_ref="infile" accept_default="true" /> 14 <param name="column" label="on column" type="data_column" data_ref="infile" accept_default="true" />
14 </inputs> 15 </inputs>
15 <outputs> 16 <outputs>
16 <collection name="split_output" type="list" label="Table split on first column"> 17 <collection name="split_output" type="list" label="Table split on first column">
17 <discover_datasets pattern="__name_and_ext__" directory="." /> 18 <discover_datasets pattern="__name_and_ext__" directory="tmp_out" />
18 </collection> 19 </collection>
19 </outputs> 20 </outputs>
20 <!--outputs>
21 <data format="input" name="outfile" metadata_source="infile" label="${tool.name} on ${on_string}"/>
22 </outputs-->
23 <tests> 21 <tests>
24 <test> 22 <test>
25 <param name="infile" value="5cols.tabular" ftype="tabular"/> 23 <param name="infile" value="5cols.tabular" ftype="tabular"/>
26 <param name="column" value="5" /> 24 <param name="column" value="5" />
27 <output_collection name="split_output" type="list"> 25 <output_collection name="split_output" type="list">