comparison extract_min_max_lines.xml @ 0:90fc00b34716 draft default tip

planemo upload for repository https://github.com/asaim/galaxytools/tree/master/tools/extract_min_max_lines commit 718c006213709b631862b8d6d655fafc92e79ef7-dirty
author bebatut
date Fri, 15 Apr 2016 07:59:28 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:90fc00b34716
1 <tool id="extract_min_max_lines" name="Extract lines corresponding" version="0.1.0">
2 <description>to minimum and maximum values of a column</description>
3
4 <requirements>
5 </requirements>
6
7 <stdio>
8 </stdio>
9
10 <version_command></version_command>
11
12 <command><![CDATA[
13 python $__tool_directory__/extract_min_max_lines.py
14 --input_file $input_file
15 --output_file $output_file
16 --column_id $column_id
17 --extraction_type $extraction_type
18 --extraction_nb $extraction_nb
19 ]]></command>
20
21 <inputs>
22 <param name="input_file" type="data" format="tabular,tsv,csv" label="Input file" help="File in tabular format with tab-separated columns (--input_file)"/>
23
24 <param name="column_id" type="data_column" data_ref="input_file" label="Column containing data to extract minimum or maximum values" multiple="false" numerical="true" help="(--column_id)"/>
25
26 <param name="extraction_type" label="Type of values to extract lines" type="select" help="(--extraction_type)">
27 <option value="min" selected="True">Minimal values</option>
28 <option value="max">Maximal values</option>
29 </param>
30
31 <param name="extraction_nb" type="integer" value="10" label="Number of lines to extract" help="(--extraction_nb)"/>
32 </inputs>
33
34 <outputs>
35 <data name="output_file" format="tabular"
36 label="${tool.name} on ${on_string}: Extracted lines" />
37 </outputs>
38
39 <tests>
40 <test>
41 <param name="input_file" value="input_file.tabular"/>
42 <param name="column_id" value="3"/>
43 <param name="extraction_type" value="min"/>
44 <param name="extraction_nb" value="10"/>
45 <output name="output_file" file="output_test_col_3_min.tabular"/>
46 </test>
47 <test>
48 <param name="input_file" value="input_file.tabular"/>
49 <param name="column_id" value="3"/>
50 <param name="extraction_type" value="max"/>
51 <param name="extraction_nb" value="10"/>
52 <output name="output_file" file="output_test_col_3_max.tabular"/>
53 </test>
54 <test>
55 <param name="input_file" value="input_file.tabular"/>
56 <param name="column_id" value="4"/>
57 <param name="extraction_type" value="min"/>
58 <param name="extraction_nb" value="10"/>
59 <output name="output_file" file="output_test_col_4_min.tabular"/>
60 </test>
61 <test>
62 <param name="input_file" value="input_file.tabular"/>
63 <param name="column_id" value="4"/>
64 <param name="extraction_type" value="max"/>
65 <param name="extraction_nb" value="10"/>
66 <output name="output_file" file="output_test_col_4_max.tabular"/>
67 </test>
68 </tests>
69
70 <help><![CDATA[
71 **What it does**
72
73 This tool extract a variable number of lines corresponding to minimum or maximum values of a chosen column.
74
75 The file must be in tabular format with tabular separated columns. To chosen column to extract minimum or maximum values must be data columns.
76 ]]></help>
77
78 <citations>
79 </citations>
80 </tool>