view rename_individuals.xml @ 0:879cbc69a0ee default tip

Uploaded
author rico
date Thu, 05 Apr 2012 15:28:27 -0400
parents
children
line wrap: on
line source

<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>