annotate select_individuals.xml @ 6:626b714f72bb

add gd_ploteig
author Richard Burhans <burhans@bx.psu.edu>
date Tue, 10 Apr 2012 13:51:19 -0400
parents 2c498d40ecde
children e29f4d801bb0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
1 <tool id="gd_select_individuals" name="Select" version="1.0.0">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
2 <description>individuals from a SNP table</description>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
3
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
4 <command interpreter="bash">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
5 echo.bash "$input" "$output"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
6 #for $individual in str($individuals).split(',')
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
7 #set $individual_idx = $input.dataset.metadata.individual_names.index($individual)
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
8 #set $individual_col = str( $input.dataset.metadata.individual_columns[$individual_idx] )
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
9 #set $arg = '\t'.join([$individual_col, $individual, ''])
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
10 "$arg"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
11 #end for
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
12 </command>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
13
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
14 <inputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
15 <param name="input" type="data" format="wsf"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
16 <param name="individuals" type="select" display="checkboxes" multiple="true" label="Individuals to include">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
17 <options>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
18 <filter type="data_meta" ref="input" key="individual_names" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
19 </options>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
20 <validator type="no_options" message="You must select at least one individual"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
21 </param>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
22 </inputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
23
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
24 <outputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
25 <data name="output" format="ind" label="Individuals from ${input.hid}" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
26 </outputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
27
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
28 <tests>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
29 <test>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
30 <param name="input" value="test_in/sample.wsf" ftype="wsf" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
31 <param name="individuals" value="PB1,PB2" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
32 <output name="output" file="test_in/a.ind" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
33 </test>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
34 </tests>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
35
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
36 <help>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
37 **What it does**
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
38
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
39 The user selects a SNP table and a set of individuals from the table.
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
40 The command saves that list of individuals for use by other Galaxy tools.
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
41 </help>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
42 </tool>