Mercurial > repos > rico > test_500
comparison select_individuals.xml @ 0:3be071295340 default tip
Uploaded
| author | rico |
|---|---|
| date | Fri, 06 Apr 2012 15:50:15 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:3be071295340 |
|---|---|
| 1 <tool id="gd_select_individuals" name="Select" version="1.0.0"> | |
| 2 <description>individuals from a SNP table</description> | |
| 3 | |
| 4 <command interpreter="bash"> | |
| 5 echo.bash "$input" "$output" | |
| 6 #for $individual in str($individuals).split(',') | |
| 7 #set $individual_idx = $input.dataset.metadata.individual_names.index($individual) | |
| 8 #set $individual_col = str( $input.dataset.metadata.individual_columns[$individual_idx] ) | |
| 9 #set $arg = '\t'.join([$individual_col, $individual, '']) | |
| 10 "$arg" | |
| 11 #end for | |
| 12 </command> | |
| 13 | |
| 14 <inputs> | |
| 15 <param name="input" type="data" format="wsf"/> | |
| 16 <param name="individuals" type="select" display="checkboxes" multiple="true" label="Individuals to include"> | |
| 17 <options> | |
| 18 <filter type="data_meta" ref="input" key="individual_names" /> | |
| 19 </options> | |
| 20 <validator type="no_options" message="You must select at least one individual"/> | |
| 21 </param> | |
| 22 </inputs> | |
| 23 | |
| 24 <outputs> | |
| 25 <data name="output" format="ind" label="Individuals from ${input.hid}" /> | |
| 26 </outputs> | |
| 27 | |
| 28 <!-- | |
| 29 <tests> | |
| 30 <test> | |
| 31 <param name="input" value="genome_diversity/test_in/sample.wsf" ftype="wsf" /> | |
| 32 <param name="individuals" value="PB1,PB2" /> | |
| 33 <output name="output" file="genome_diversity/test_in/a.ind" /> | |
| 34 </test> | |
| 35 </tests> | |
| 36 --> | |
| 37 | |
| 38 <help> | |
| 39 **What it does** | |
| 40 | |
| 41 The user selects a SNP table and a set of individuals from the table. | |
| 42 The command saves that list of individuals for use by other Galaxy tools. | |
| 43 </help> | |
| 44 </tool> |
