changeset 23:2d4aac68471a

Uploaded
author rico
date Thu, 05 Apr 2012 15:21:53 -0400
parents 83806667ff3a
children 81edc38bf5b1
files rename_individuals.xml
diffstat 1 files changed, 34 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rename_individuals.xml	Thu Apr 05 15:21:53 2012 -0400
@@ -0,0 +1,34 @@
+<tool id="gd_rename_individuals" name="Rename" version="1.0.0">
+  <description>individuals</description>
+
+  <command interpreter="python">
+    rename_individuals.py "$input" "$output"
+    #for $individual in $individuals
+      #set $arg = '%s:%s' % (str($individual.column), str($individual.alias))
+      "$arg"
+    #end for
+  </command>
+
+  <inputs>
+    <param name="input" type="data" format="ind"/>
+
+    <repeat name="individuals" title="Rename individual" min="1">
+        <param name="column" type="select" label="Choose individual to rename">
+          <options from_dataset="input">
+            <column name="name" index="1"/>
+            <column name="value" index="0"/>
+          </options>
+        </param>
+        <param name="alias" type="text" label="Enter the new name" />
+    </repeat>
+  </inputs>
+
+  <outputs>
+    <data name="output" format="ind" label="Individuals from ${input.hid}" />
+  </outputs>
+
+  <help>
+**What it does**
+
+  </help>
+</tool>