| 
0
 | 
     1 <tool id="list_proj" name="List TAPDANCE Projects" version="1.0">
 | 
| 
 | 
     2   <description>Generate a list of available projects</description>
 | 
| 
 | 
     3   <command interpreter="perl">lib/list_projects.pl -u $userEmail
 | 
| 
 | 
     4     #if $meta.meta_select.__str__() != 'all':
 | 
| 
 | 
     5       #for $item in $meta.tags
 | 
| 
 | 
     6         -tag $item.tag.__str__()
 | 
| 
 | 
     7       #end for
 | 
| 
 | 
     8       -query_type $meta.meta_select.__str__()
 | 
| 
 | 
     9     #end if
 | 
| 
 | 
    10     > $result
 | 
| 
 | 
    11   </command>
 | 
| 
 | 
    12   <inputs>
 | 
| 
 | 
    13     <conditional name="meta">
 | 
| 
 | 
    14       <param name="meta_select" type="select" label="Filter on metadata tags?">
 | 
| 
 | 
    15 	<option value="all">Return all available projects</option>
 | 
| 
 | 
    16 	<!--<option value="union">Return projects with all of the following tags</option>-->
 | 
| 
 | 
    17 	<option value="join">Return projects with at least one of the following tags</option>
 | 
| 
 | 
    18       </param>
 | 
| 
 | 
    19       <when value="all">
 | 
| 
 | 
    20 	<param type="hidden" name="tags" value=""/>
 | 
| 
 | 
    21       </when>
 | 
| 
 | 
    22       <!--<when value="union">
 | 
| 
 | 
    23 	<repeat name="tags" title="Metadata Tags" min="1">
 | 
| 
 | 
    24 	  <param name="tag" type="text"/>
 | 
| 
 | 
    25 	</repeat>
 | 
| 
 | 
    26       </when>-->
 | 
| 
 | 
    27       <when value="join">
 | 
| 
 | 
    28 	<repeat name="tags" title="Metadata Tags" min="1">
 | 
| 
 | 
    29 	  <param name="tag" type="text"/>
 | 
| 
 | 
    30 	</repeat>
 | 
| 
 | 
    31       </when>
 | 
| 
 | 
    32     </conditional>
 | 
| 
 | 
    33   </inputs>
 | 
| 
 | 
    34   <outputs>
 | 
| 
 | 
    35     <data format="tabular" name="result" label="TAPDANCE Projects"/>
 | 
| 
 | 
    36   </outputs>
 | 
| 
 | 
    37   <help>
 | 
| 
 | 
    38     See full help at https://sourceforge.net/p/tapdancebio/wiki/
 | 
| 
 | 
    39 
 | 
| 
 | 
    40     `Report a Problem`_
 | 
| 
 | 
    41 
 | 
| 
 | 
    42     .. _Report a Problem: https://sourceforge.net/p/tapdancebio/tickets/new/
 | 
| 
 | 
    43 
 | 
| 
 | 
    44   </help>
 | 
| 
 | 
    45 </tool>
 |