comparison mothur/tools/mothur/pre.cluster.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 5265aa9067e0
comparison
equal deleted inserted replaced
1:fcc0778f6987 2:e990ac8a0f58
1 <tool id="mothur_pre_cluster" name="Pre.cluster" version="1.16.0"> 1 <tool id="mothur_pre_cluster" name="Pre.cluster" version="1.19.0">
2 <description>Remove sequences due to pyrosequencing errors</description> 2 <description>Remove sequences due to pyrosequencing errors</description>
3 <command interpreter="python"> 3 <command interpreter="python">
4 mothur_wrapper.py 4 mothur_wrapper.py
5 #import re, os.path
6 #set results = ["'^mothur.\S+\.logfile$:'" + $logfile.__str__]
7 ## adds .precluster before the last extension to the input file
8 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.precluster.\2',$os.path.basename($fasta.__str__)) + ":'" + $fasta_out.__str__]
9 #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.precluster.names',$os.path.basename($fasta.__str__)) + ":'" + $names_out.__str__]
5 --cmd='pre.cluster' 10 --cmd='pre.cluster'
6 --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.precluster\.fasta$:'$fasta_out,'^\S+\.precluster\.names$:'$names_out
7 --outputdir='$logfile.extra_files_path' 11 --outputdir='$logfile.extra_files_path'
8 --fasta=$fasta 12 --fasta=$fasta
9 #if $matrix.name.__str__ != "None" and len($matrix.name.__str__) > 0: 13 #if $name.__str__ != "None" and len($name.__str__) > 0:
10 --name=$name 14 --name=$name
15 #end if
11 #if 20 >= int($diffs.__str__) >= 0: 16 #if 20 >= int($diffs.__str__) >= 0:
12 --diffs=$diffs 17 --diffs=$diffs
13 #end if 18 #end if
19 --result=#echo ','.join($results)
14 </command> 20 </command>
15 <inputs> 21 <inputs>
16 <param name="fasta" type="data" format="fasta" label="fasta - Sequence Fasta"/> 22 <param name="fasta" type="data" format="fasta" label="fasta - Sequence Fasta"/>
17 <param name="name" type="data" format="names" optional="true" label="name - Sequences Name reference"/> 23 <param name="name" type="data" format="names" optional="true" label="name - Sequences Name reference"/>
18 <param name="diffs" type="integer" value="1" label="diffs - Number of mismatched bases to allow between sequences in a group (default 1)"/> 24 <param name="diffs" type="integer" value="1" label="diffs - Number of mismatched bases to allow between sequences in a group (default 1)"/>