Mercurial > repos > iuc > gemini_amend
view gemini_amend.xml @ 5:bff8fad3fb69 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 62ed732cba355e695181924a8ed4cce49ca21c59
author | iuc |
---|---|
date | Fri, 11 Jan 2019 17:44:47 -0500 |
parents | a02cd62adb70 |
children | 334e946cacd4 |
line wrap: on
line source
<tool id="gemini_@BINARY@" name="GEMINI @BINARY@" version="@VERSION@"> <description>Amend an already loaded GEMINI database.</description> <macros> <import>gemini_macros.xml</import> <token name="@BINARY@">amend</token> </macros> <expand macro="requirements" /> <expand macro="stdio" /> <expand macro="version_command" /> <command> <![CDATA[ cp '$infile' '$outfile' && gemini @BINARY@ $clear --sample '$ped' '$outfile' ]]> </command> <inputs> <expand macro="infile" /> <param name="ped" type="data" format="tabular" optional="True" label="Additional sample information file in PED+ format" help="(--sample)" /> <param argument="--clear" type="boolean" truevalue="--clear" falsevalue="" checked="False" label="Set all values to None before loading" help="Makes it possible to delete values. Otherwise the old ones are kept"/> </inputs> <outputs> <data name="outfile" format="gemini.sqlite" /> </outputs> <tests> <test> <param name="infile" value="gemini_amend_input.db" ftype="gemini.sqlite" /> <param name="ped" value="gemini_amend.ped" ftype="tabular" /> <output name="outfile" file="gemini_auto_rec_input.db" ftype="gemini.sqlite" compare="sim_size" delta="1000" /> </test> </tests> <help> <![CDATA[ **What it does** Gemini amend adds information about the samples via PED file. If you have a sample table in a Gemini db that looks like this:: sample_id family_id name paternal_id maternal_id sex phenotype hair_color 1 1 M10475 0 0 1 1 brown 2 1 M10478 M10475 M10500 2 2 blonde 3 1 M10500 0 0 2 2 purple and you want the change the haircolor of sample 3. And also add some information about the preferred hobbies of some samples. You could specify the following PED file. :: #family_id name paternal_id maternal_id sex phenotype hair_color hobby 1 M10475 None None 1 1 brown fishing 1 M10478 M10475 M10500 2 2 red biking 1 M10500 None None 2 2 purple this results in:: sample_id family_id name paternal_id maternal_id sex phenotype hair_color hobby 1 1 M10475 0 0 1 1 brown fishing 2 1 M10478 M10475 M10500 2 2 red biking 3 1 M10500 0 0 2 2 purple . ]]> </help> <expand macro="citations"/> </tool>