Mercurial > repos > jjohnson > mothur_toolsuite
comparison mothur/tools/mothur/screen.seqs.xml @ 2:e990ac8a0f58
Migrated tool version 1.19.0 from old tool shed archive to new tool shed repository
author | jjohnson |
---|---|
date | Tue, 07 Jun 2011 17:39:06 -0400 |
parents | fcc0778f6987 |
children | b849cd7e132a |
comparison
equal
deleted
inserted
replaced
1:fcc0778f6987 | 2:e990ac8a0f58 |
---|---|
1 <tool id="mothur_screen_seqs" name="Screen.seqs" version="1.16.0"> | 1 <tool id="mothur_screen_seqs" name="Screen.seqs" version="1.19.0"> |
2 <description>Screen sequences</description> | 2 <description>Screen sequences</description> |
3 <command interpreter="python"> | 3 <command interpreter="python"> |
4 mothur_wrapper.py | 4 mothur_wrapper.py |
5 #import re, os.path | 5 #import re, os.path |
6 --cmd='screen.seqs' | 6 --cmd='screen.seqs' |
7 #set results = ["'^mothur.\S+\.logfile$:'" + $logfile.__str__] | 7 #set results = ["'^mothur.\S+\.logfile$:'" + $logfile.__str__] |
8 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.good.\2',$os.path.basename($input.__str__)) + ":'" + $out_file.__str__] | 8 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.good.\2',$os.path.basename($input.__str__)) + ":'" + $out_file.__str__] |
9 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.bad.accnos',$os.path.basename($input.__str__)) + ":'" + $bad_accnos.__str__] | 9 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.bad.accnos',$os.path.basename($input.__str__)) + ":'" + $bad_accnos.__str__] |
10 --outputdir='$logfile.extra_files_path' | 10 --outputdir='$logfile.extra_files_path' |
11 --tmpdir='${logfile.extra_files_path}/input' | 11 --tmpdir='${logfile.extra_files_path}/input' |
12 --fasta=$input | 12 --fasta=$input |
13 #if int($start) >= 0: | 13 #if int($start) >= 0: |
14 --start=$start | 14 --start=$start |
32 --criteria=$criteria | 32 --criteria=$criteria |
33 #end if | 33 #end if |
34 #if $optimize != None and $optimize.__str__ != "None": | 34 #if $optimize != None and $optimize.__str__ != "None": |
35 --optimize=$optimize | 35 --optimize=$optimize |
36 #end if | 36 #end if |
37 #if $input_qfile != None and $input_qfile.__str__ != "None": | |
38 --qfile=$input_qfile | |
39 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.good.\2',$os.path.basename($input_qfile.__str__)) + ":'" + $output_qfile.__str__] | |
40 #end if | |
37 #if $input_names != None and $input_names.__str__ != "None": | 41 #if $input_names != None and $input_names.__str__ != "None": |
38 --name=$input_names | 42 --name=$input_names |
39 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.good.\2',$os.path.basename($input_names.__str__)) + ":'" + $output_names.__str__] | 43 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.good.\2',$os.path.basename($input_names.__str__)) + ":'" + $output_names.__str__] |
40 #end if | 44 #end if |
41 #if $input_groups != None and $input_groups.__str__ != "None": | 45 #if $input_groups != None and $input_groups.__str__ != "None": |
42 --group=$input_groups | 46 --group=$input_groups |
43 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.good.\2',$os.path.basename($input_groups.__str__)) + ":'" + $output_groups.__str__] | 47 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.good.\2',$os.path.basename($input_groups.__str__)) + ":'" + $output_groups.__str__] |
44 #end if | 48 #end if |
45 #if $input_alignreport != None and $input_alignreport.__str__ != "None": | 49 #if $input_alignreport != None and $input_alignreport.__str__ != "None": |
46 --alignreport=$input_alignreport | 50 --alignreport=$input_alignreport |
47 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.good.\2',$os.path.basename($input_alignreport.__str__)) + ":'" + $output_alignreport.__str__] | 51 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.good.\2',$os.path.basename($input_alignreport.__str__)) + ":'" + $output_alignreport.__str__] |
48 #end if | 52 #end if |
49 --result=#echo ','.join($results) | 53 --result=#echo ','.join($results) |
50 --processors=2 | 54 --processors=2 |
51 </command> | 55 </command> |
52 <inputs> | 56 <inputs> |
64 <option value="minlength">minlength</option> | 68 <option value="minlength">minlength</option> |
65 <option value="maxlength">maxlength</option> | 69 <option value="maxlength">maxlength</option> |
66 <option value="maxambig">maxambig</option> | 70 <option value="maxambig">maxambig</option> |
67 <option value="maxhomop">maxhomop</option> | 71 <option value="maxhomop">maxhomop</option> |
68 </param> | 72 </param> |
69 <param name="input_names" type="data" format="names" optional="true" label="name - Sequece Names to screen"/> | 73 <param name="input_qfile" type="data" format="qual" optional="true" label="qfile - Sequence Quality file to screen"/> |
74 <param name="input_names" type="data" format="names" optional="true" label="name - Sequence Names to screen"/> | |
70 <param name="input_groups" type="data" format="groups" optional="true" label="group - Groups to screen"/> | 75 <param name="input_groups" type="data" format="groups" optional="true" label="group - Groups to screen"/> |
71 <param name="input_alignreport" type="data" format="align.report" optional="true" label="alignreport - Align Report to screen"/> | 76 <param name="input_alignreport" type="data" format="align.report" optional="true" label="alignreport - Align Report to screen"/> |
72 </inputs> | 77 </inputs> |
73 <outputs> | 78 <outputs> |
74 <data format="html" name="logfile" label="${tool.name} on ${on_string}: logfile" /> | 79 <data format="html" name="logfile" label="${tool.name} on ${on_string}: logfile" /> |
75 <data format="fasta" name="out_file" label="${tool.name} on ${on_string}: good.${input.datatype.file_ext}" > | 80 <data format_source="input" name="out_file" label="${tool.name} on ${on_string}: good.${input.datatype.file_ext}" /> |
76 <change_format> | 81 <data format="accnos" name="bad_accnos" label="${tool.name} on ${on_string}: bad.accnos" /> |
77 <when input_dataset="input" attribute="ext" value="align" format="align"/> | 82 <data format_source="input_qfile" name="output_qfile" label="${tool.name} on ${on_string}: qfile" > |
78 </change_format> | 83 <filter>input_qfile != None</filter> |
79 </data> | 84 </data> |
80 <data format="accnos" name="bad_accnos" label="${tool.name} on ${on_string}: bad.accnos" /> | |
81 <data format="names" name="output_names" label="${tool.name} on ${on_string}: names" > | 85 <data format="names" name="output_names" label="${tool.name} on ${on_string}: names" > |
82 <filter>input_names != None</filter> | 86 <filter>input_names != None</filter> |
83 </data> | 87 </data> |
84 <data format="groups" name="output_groups" label="${tool.name} on ${on_string}: groups" > | 88 <data format="groups" name="output_groups" label="${tool.name} on ${on_string}: groups" > |
85 <filter>input_groups != None</filter> | 89 <filter>input_groups != None</filter> |
102 | 106 |
103 .. _Mothur: http://www.mothur.org/wiki/Main_Page | 107 .. _Mothur: http://www.mothur.org/wiki/Main_Page |
104 | 108 |
105 **Command Documenation** | 109 **Command Documenation** |
106 | 110 |
107 The screen.seqs_ command enables you to keep sequences that fulfill certain user defined criteria. Furthermore, it enables you to cull those sequences not meeting the criteria from a names, group, or align.report file. | 111 The screen.seqs_ command enables you to keep sequences that fulfill certain user defined criteria. Furthermore, it enables you to cull those sequences not meeting the criteria from a name_, group_, or align.report_ file. |
108 | 112 |
113 .. _name: http://www.mothur.org/wiki/Name_file | |
114 .. _group: http://www.mothur.org/wiki/Group_file | |
115 .. _align.report: http://www.mothur.org/wiki/Align.seqs | |
109 .. _screen.seqs: http://www.mothur.org/wiki/Screen.seqs | 116 .. _screen.seqs: http://www.mothur.org/wiki/Screen.seqs |
110 | 117 |
111 | 118 |
112 </help> | 119 </help> |
113 </tool> | 120 </tool> |