Mercurial > repos > bgruening > text_processing
view unfold_column.xml @ 21:86755160afbf draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
author | bgruening |
---|---|
date | Fri, 16 Aug 2024 10:41:54 +0000 |
parents | 12615d397df7 |
children |
line wrap: on
line source
<tool id="tp_unfold_column_tool" name="Unfold" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> <description>columns from a table</description> <macros> <import>macros.xml</import> </macros> <expand macro="creator"/> <requirements> <requirement type="package" version="3.12">python</requirement> </requirements> <command> <![CDATA[ python '$__tool_directory__/unfold_column.py' '${infile}' $column "${delimiter}" '${outfile}' ]]> </command> <inputs> <param name="infile" format="tabular" type="data" label="File to unfold" /> <param name="column" type="data_column" data_ref="infile" accept_default="true" label="Column to use for unfolding" /> <param name="delimiter" type="select" label="Values in column are delimited by"> <option value=" ">Whitespace</option> <option value=".">Dot</option> <option value=",">Comma</option> <option value="-">Dash</option> <option value="_">Underscore</option> <option value="|">Pipe</option> <option value=";">Semicolon</option> </param> </inputs> <outputs> <data name="outfile" format_source="infile" metadata_source="infile" /> </outputs> <tests> <test> <param name="infile" value="unfold_column1.tabular" ftype="tabular"/> <param name="delimiter" value=" "/> <param name="column" value="3"/> <output name="outfile" file="unfold_column_result1.tabular" ftype="tabular"/> </test> </tests> <help> <![CDATA[ **What it does** This tool will unfold one column of your input dataset. ----- Input Example:: a b 1,2,3,4,5 c Output Example:: a b 1 c a b 2 c a b 3 c a b 4 c a b 5 c ]]> </help> <expand macro="citations" /> </tool>