Mercurial > repos > rico > testing_again
comparison rename_individuals.xml @ 0:4d28d3295ac3 default tip
Uploaded
| author | rico |
|---|---|
| date | Fri, 06 Apr 2012 13:46:42 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4d28d3295ac3 |
|---|---|
| 1 <tool id="gd_rename_individuals" name="Rename" version="1.0.0"> | |
| 2 <description>individuals</description> | |
| 3 | |
| 4 <command interpreter="python"> | |
| 5 rename_individuals.py "$input" "$output" | |
| 6 #for $individual in $individuals | |
| 7 #set $arg = '%s:%s' % (str($individual.column), str($individual.alias)) | |
| 8 "$arg" | |
| 9 #end for | |
| 10 </command> | |
| 11 | |
| 12 <inputs> | |
| 13 <param name="input" type="data" format="ind"/> | |
| 14 | |
| 15 <repeat name="individuals" title="Rename individual" min="1"> | |
| 16 <param name="column" type="select" label="Choose individual to rename"> | |
| 17 <options from_dataset="input"> | |
| 18 <column name="name" index="1"/> | |
| 19 <column name="value" index="0"/> | |
| 20 </options> | |
| 21 </param> | |
| 22 <param name="alias" type="text" label="Enter the new name" /> | |
| 23 </repeat> | |
| 24 </inputs> | |
| 25 | |
| 26 <outputs> | |
| 27 <data name="output" format="ind" label="Individuals from ${input.hid}" /> | |
| 28 </outputs> | |
| 29 | |
| 30 <help> | |
| 31 **What it does** | |
| 32 | |
| 33 </help> | |
| 34 </tool> |
