Mercurial > repos > bebatut > extract_min_max_lines
view 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 |
line wrap: on
line source
<tool id="extract_min_max_lines" name="Extract lines corresponding" version="0.1.0"> <description>to minimum and maximum values of a column</description> <requirements> </requirements> <stdio> </stdio> <version_command></version_command> <command><![CDATA[ python $__tool_directory__/extract_min_max_lines.py --input_file $input_file --output_file $output_file --column_id $column_id --extraction_type $extraction_type --extraction_nb $extraction_nb ]]></command> <inputs> <param name="input_file" type="data" format="tabular,tsv,csv" label="Input file" help="File in tabular format with tab-separated columns (--input_file)"/> <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)"/> <param name="extraction_type" label="Type of values to extract lines" type="select" help="(--extraction_type)"> <option value="min" selected="True">Minimal values</option> <option value="max">Maximal values</option> </param> <param name="extraction_nb" type="integer" value="10" label="Number of lines to extract" help="(--extraction_nb)"/> </inputs> <outputs> <data name="output_file" format="tabular" label="${tool.name} on ${on_string}: Extracted lines" /> </outputs> <tests> <test> <param name="input_file" value="input_file.tabular"/> <param name="column_id" value="3"/> <param name="extraction_type" value="min"/> <param name="extraction_nb" value="10"/> <output name="output_file" file="output_test_col_3_min.tabular"/> </test> <test> <param name="input_file" value="input_file.tabular"/> <param name="column_id" value="3"/> <param name="extraction_type" value="max"/> <param name="extraction_nb" value="10"/> <output name="output_file" file="output_test_col_3_max.tabular"/> </test> <test> <param name="input_file" value="input_file.tabular"/> <param name="column_id" value="4"/> <param name="extraction_type" value="min"/> <param name="extraction_nb" value="10"/> <output name="output_file" file="output_test_col_4_min.tabular"/> </test> <test> <param name="input_file" value="input_file.tabular"/> <param name="column_id" value="4"/> <param name="extraction_type" value="max"/> <param name="extraction_nb" value="10"/> <output name="output_file" file="output_test_col_4_max.tabular"/> </test> </tests> <help><![CDATA[ **What it does** This tool extract a variable number of lines corresponding to minimum or maximum values of a chosen column. The file must be in tabular format with tabular separated columns. To chosen column to extract minimum or maximum values must be data columns. ]]></help> <citations> </citations> </tool>