Mercurial > repos > jjohnson > mothur_toolsuite
comparison mothur/tools/mothur/get.groups.xml @ 0:3202a38e44d9
Migrated tool version 1.15.1 from old tool shed archive to new tool shed repository
author | jjohnson |
---|---|
date | Tue, 07 Jun 2011 17:32:23 -0400 |
parents | |
children | fcc0778f6987 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3202a38e44d9 |
---|---|
1 <tool id="mothur_get_groups" name="Get.groups" version="1.15.0"> | |
2 <description>Select groups</description> | |
3 <command interpreter="python"> | |
4 mothur_wrapper.py | |
5 #import re, os.path | |
6 #set results = ["'^mothur.\S+\.logfile$:'" + $logfile.__str__] | |
7 ## adds .pick before the last extension to the input file | |
8 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($group_in.__str__)) + ":'" + $group_out.__str__] | |
9 --cmd='get.groups' | |
10 --outputdir='$logfile.extra_files_path' | |
11 --group=$group_in | |
12 #if $groups.__str__ != "None" and len($groups.__str__) > 0: | |
13 --groups=$groups | |
14 #end if | |
15 #if $accnos.__str__ != "None" and len($accnos.__str__) > 0: | |
16 --accnos=$accnos | |
17 #end if | |
18 #if $fasta_in.__str__ != "None" and len($fasta_in.__str__) > 0: | |
19 --fasta=$fasta_in | |
20 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($fasta_in.__str__)) + ":'" + $fasta_out.__str__] | |
21 #end if | |
22 #if $name_in.__str__ != "None" and len($name_in.__str__) > 0: | |
23 --name=$name_in | |
24 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($name_in.__str__)) + ":'" + $name_out.__str__] | |
25 #end if | |
26 #if $list_in.__str__ != "None" and len($list_in.__str__) > 0: | |
27 --list=$list_in | |
28 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($list_in.__str__)) + ":'" + $list_out.__str__] | |
29 #end if | |
30 #if $taxonomy_in.__str__ != "None" and len($taxonomy_in.__str__) > 0: | |
31 --taxonomy=$taxonomy_in | |
32 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($taxonomy_in.__str__)) + ":'" + $taxonomy_out.__str__] | |
33 #end if | |
34 --result=#echo ','.join($results) | |
35 </command> | |
36 <inputs> | |
37 <param name="group_in" type="data" format="groups" label="group - Groups"/> | |
38 <param name="groups" type="select" optional="true" label="groups - Pick groups to include" multiple="true"> | |
39 <options from_dataset="group_in"> | |
40 <column name="name" index="1"/> | |
41 <column name="value" index="1"/> | |
42 <filter type="unique_value" name="unq_grp" column="1" /> | |
43 </options> | |
44 </param> | |
45 <param name="accnos" type="data" format="accnos" optional="true" label="accnos - Accession Names"/> | |
46 <param name="fasta_in" type="data" format="fasta" optional="true" label="fasta - Fasta Sequences"/> | |
47 <param name="name_in" type="data" format="names" optional="true" label="name - Sequences Name reference"/> | |
48 <param name="list_in" type="data" format="list" optional="true" label="list - OTU List"/> | |
49 <param name="taxonomy_in" type="data" format="taxonomy" optional="true" label="taxonomy - Taxonomy"/> | |
50 </inputs> | |
51 <outputs> | |
52 <data format="html" name="logfile" label="${tool.name} on ${on_string}: logfile" /> | |
53 <data format="groups" name="group_out" label="${tool.name} on ${on_string}: pick.groups"/> | |
54 <!-- fix format --> | |
55 <data format="fasta" name="fasta_out" label="${tool.name} on ${on_string}: pick.fasta"> | |
56 <filter>fasta_in != None</filter> | |
57 </data> | |
58 <data format="names" name="name_out" label="${tool.name} on ${on_string}: pick.name"> | |
59 <filter>name_in != None</filter> | |
60 </data> | |
61 <data format="list" name="list_out" label="${tool.name} on ${on_string}: pick.list"> | |
62 <filter>list_in != None</filter> | |
63 </data> | |
64 <data format="taxonomy" name="taxonomy_out" label="${tool.name} on ${on_string}: pick.taxonomy"> | |
65 <filter>taxonomy_in != None</filter> | |
66 </data> | |
67 </outputs> | |
68 <requirements> | |
69 <requirement type="binary">mothur</requirement> | |
70 </requirements> | |
71 <tests> | |
72 </tests> | |
73 <help> | |
74 **Mothur Overview** | |
75 | |
76 Mothur_, initiated by Dr. Patrick Schloss and his software development team | |
77 in the Department of Microbiology and Immunology at The University of Michigan, | |
78 provides bioinformatics for the microbial ecology community. | |
79 | |
80 .. _Mothur: http://www.mothur.org/wiki/Main_Page | |
81 | |
82 **Command Documenation** | |
83 | |
84 The get.groups_ command selects sequences from a specific group or set of groups from the following file types: fasta, name, group, list, taxonomy. | |
85 | |
86 .. _get.groups: http://www.mothur.org/wiki/Get.groups | |
87 | |
88 | |
89 </help> | |
90 </tool> |