# HG changeset patch # User Jim Johnson # Date 1375194391 18000 # Node ID a3eed59297eaa54a67232e89cfc8bd9392b6eb8a # Parent a90d1915a176146cb73f660e68140450c3b84ca6 Patches courtesy of Peter Briggs, Bioinformatics Core Facility University of Manchester make.contigs.xml.patch:# make.contigs.xml.patch make.contigs.xml.patch:# make.contigs.xml.patch:# 1. Fix cosmetic typo in (forard -> forward) make.contigs.xml.patch:# 2. Address error due to having 'mismatch' as the name for both an input and an output parameter: make.contigs.xml.patch:# rename output parameter to 'cmismatch' make.contigs.xml.patch:# 3. Remove 'threshold' parameter: make.contigs in mothur doesn't support a 'threshold' parameter metagenomics.py.patch:# metagenomics.py.patch metagenomics.py.patch:# metagenomics.py.patch:# 1. Groups class: names were being taken from the wrong field (affected shhh.flows tool) metagenomics.py.patch:# 2. Axes class: make 'sniff' method more sensitive to try and restrict arbitrary tabular metagenomics.py.patch:# data uploads being sniffed as this type mothur_wrapper.py.patch:# mothur_wrapper.py.patch mothur_wrapper.py.patch:# mothur_wrapper.py.patch:# 1. Update 'cmd_dict' settings for shhh.flows and shhh.seqs (otherwise these functions will mothur_wrapper.py.patch:# fail on execution) mothur_wrapper.py.patch:# 2. Fix add_option calls defining '--match' and '--mismatch' command line options (otherwise mothur_wrapper.py.patch:# syntax error causes immediate failure) screen.seqs.xml.patch:# screen.seqs.xml.patch screen.seqs.xml.patch:# screen.seqs.xml.patch:# Replace pattern for align.report output file in definiting of 'results' parameter in screen.seqs.xml.patch:# section (otherwise output_alignreport data item is empty). shhh.flows.xml.patch:# shhh.flows.xml.patch shhh.flows.xml.patch:# shhh.flows.xml.patch:# Replace 'format_source' with 'format' for output parameters (otherwise formats are not shhh.flows.xml.patch:# correctly assigned to output datasets) shhh.seqs.xml.patch:# shhh.seqs.xml.patch shhh.seqs.xml.patch:# shhh.seqs.xml.patch:# 1. Fix patterns in --result (in section) for shhh_seqs.fasta and shhh_seqs.names shhh.seqs.xml.patch:# output files (otherwise files are not collected and associated data items are empty) shhh.seqs.xml.patch:# 2. Replace 'format_source' with 'format' for output parameters (otherwise formats are not shhh.seqs.xml.patch:# correctly assigned to output datasets) trim.flows.xml.patch:# trim.flows.xml.patch trim.flows.xml.patch:# trim.flows.xml.patch:# Remove erroneous space from --result definition in section (otherwise causes tool trim.flows.xml.patch:# failure) trim.seqs.xml.patch:# trim.seqs.xml.patch trim.seqs.xml.patch:# trim.seqs.xml.patch:# 1. Remove reference to undefined 'oligo.allvalues' varible in section (otherwise trim.seqs.xml.patch:# causes failure on execution) trim.seqs.xml.patch:# 2. Fix format for input parameter 'names' (format should be 'names' not 'name') trim.seqs.xml.patch:# 3. Add output parameter 'scrap_names' (to ensure consistent collection of all outputs) trim.seqs.xml.patch:# 4. Update --result definition in section to collect both trim.names and scrap.names diff -r a90d1915a176 -r a3eed59297ea mothur/tools/mothur/make.contigs.xml --- a/mothur/tools/mothur/make.contigs.xml Thu May 30 08:59:17 2013 -0500 +++ b/mothur/tools/mothur/make.contigs.xml Tue Jul 30 09:26:31 2013 -0500 @@ -1,9 +1,9 @@ - Aligns paired forard and reverse fastq files to contigs as fasta and quality + Aligns paired forward and reverse fastq files to contigs as fasta and quality mothur_wrapper.py --cmd='make.contigs' - --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.contigs\.fasta$:'$fasta,'^\S+\.contigs\.qual$:'$qual,'^\S+\.contigs\.mismatch$:'$mismatch + --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.contigs\.fasta$:'$fasta,'^\S+\.contigs\.qual$:'$qual,'^\S+\.contigs\.mismatch$:'$cmismatch --outputdir='$logfile.extra_files_path' --ffastq=$ffastq --rfastq=$rfastq @@ -33,9 +33,9 @@ #if $gapextend.__str__ != '': --gapextend=$gapextend #end if - #if $threshold.__str__ != '': - --threshold=$threshold - #end if + ###if $threshold.__str__ != '': + ## --threshold=$threshold + ###end if --processors=8 @@ -71,16 +71,18 @@ + - + mothur diff -r a90d1915a176 -r a3eed59297ea mothur/tools/mothur/mothur_wrapper.py --- a/mothur/tools/mothur/mothur_wrapper.py Thu May 30 08:59:17 2013 -0500 +++ b/mothur/tools/mothur/mothur_wrapper.py Tue Jul 30 09:26:31 2013 -0500 @@ -274,8 +274,8 @@ cmd_dict['sens.spec'] = dict({'required' : ['list',['column','phylip']] , 'optional' : ['label','cutoff','hard','precision']}) cmd_dict['seq.error'] = dict({'required' : ['fasta','reference'] , 'optional' : ['name','qfile','report','ignorechimeras','threshold','processors']}) cmd_dict['sffinfo'] = dict({'required' : [['sff','sfftxt']], 'optional' : ['fasta','qfile','trim','sfftxt','flow','accnos']}) - cmd_dict['shhh.flows'] = dict({'required' : [['flow','files']], 'optional' : ['lookup','maxiter','mindelta','cutoff','sigma','order','large','processors']}) - cmd_dict['shhh.seqs'] = dict({'required' : [['fasta','files']], 'optional' : ['group','sigma','processors']}) + cmd_dict['shhh.flows'] = dict({'required' : [['flow']], 'optional' : ['lookup','maxiter','mindelta','cutoff','sigma','order','large','processors']}) + cmd_dict['shhh.seqs'] = dict({'required' : [['fasta','name']], 'optional' : ['group','sigma','processors']}) cmd_dict['split.abund'] = dict({'required' : ['fasta',['name','list']], 'optional' : ['cutoff','group','groups','label','accnos']}) cmd_dict['split.groups'] = dict({'required' : ['fasta','group'], 'optional' : ['name','groups']}) cmd_dict['sort.seqs'] = dict({'required' : [['fasta','qfile','name','group','flow','taxonomy']], 'optional' : ['accnos','large']}) @@ -380,8 +380,8 @@ parser.add_option( '--search', dest='search', help='Method for finding the template sequence: kmer, blast, suffix' ) parser.add_option( '--ksize', dest='ksize', type="int", help='Size of kmers (5 - 12)' ) parser.add_option( '--align', dest='align', help='Alignment method: needleman, blastn, gotoh' ) - parser.add_option( '--match', dest='match' help='Reward for a match, default is +1.0' ) - parser.add_option( '--mismatch', dest='mismatch' help='Penalty for a mismatch, default is -1.0' ) + parser.add_option( '--match', dest='match', help='Reward for a match, default is +1.0' ) + parser.add_option( '--mismatch', dest='mismatch', help='Penalty for a mismatch, default is -1.0' ) parser.add_option( '--gapopen', dest='gapopen', help='Penalty for a opening, default is -2.0' ) parser.add_option( '--gapextend', dest='gapextend', help='Penalty for extending a gap, default is -1.0' ) parser.add_option( '--precision', dest='precision', help='' ) diff -r a90d1915a176 -r a3eed59297ea mothur/tools/mothur/screen.seqs.xml --- a/mothur/tools/mothur/screen.seqs.xml Thu May 30 08:59:17 2013 -0500 +++ b/mothur/tools/mothur/screen.seqs.xml Tue Jul 30 09:26:31 2013 -0500 @@ -48,7 +48,8 @@ #end if #if $input_alignreport != None and $input_alignreport.__str__ != "None": --alignreport=$input_alignreport - #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.good.\2',$os.path.basename($input_alignreport.__str__)) + ":'" + $output_alignreport.__str__] + ###set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.good.\2',$os.path.basename($input_alignreport.__str__)) + ":'" + $output_alignreport.__str__] + #set results = $results + ["'^\S+\.good\.align\.report$:'" + $output_alignreport.__str__] #end if #if $input_taxonomy != None and $input_taxonomy.__str__ != "None": --taxonomy=$input_taxonomy diff -r a90d1915a176 -r a3eed59297ea mothur/tools/mothur/shhh.flows.xml --- a/mothur/tools/mothur/shhh.flows.xml Thu May 30 08:59:17 2013 -0500 +++ b/mothur/tools/mothur/shhh.flows.xml Tue Jul 30 09:26:31 2013 -0500 @@ -79,11 +79,11 @@ - - - - - + + + + + mothur diff -r a90d1915a176 -r a3eed59297ea mothur/tools/mothur/shhh.seqs.xml --- a/mothur/tools/mothur/shhh.seqs.xml Thu May 30 08:59:17 2013 -0500 +++ b/mothur/tools/mothur/shhh.seqs.xml Tue Jul 30 09:26:31 2013 -0500 @@ -4,7 +4,7 @@ mothur_wrapper.py #import re, os.path --cmd='shhh.seqs' - --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.shhh\.fasta$:'$shhh_fasta,'^\S+\.shhh\.names$:'$shhh_names,'^\S+\.shhh\.map$:'$shhh_map + --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.shhh_seqs\.fasta$:'$shhh_fasta,'^\S+\.shhh_seqs\.names$:'$shhh_names,'^\S+\.shhh\.\S+\.map$:'$shhh_map --outputdir='$logfile.extra_files_path' --fasta=$fasta --name=$name @@ -27,9 +27,9 @@ - - - + + + mothur diff -r a90d1915a176 -r a3eed59297ea mothur/tools/mothur/trim.flows.xml --- a/mothur/tools/mothur/trim.flows.xml Thu May 30 08:59:17 2013 -0500 +++ b/mothur/tools/mothur/trim.flows.xml Tue Jul 30 09:26:31 2013 -0500 @@ -6,7 +6,7 @@ --cmd='trim.flows' ## #set results = ["'^mothur.\S+\.logfile$:'" + $logfile.__str__] ## #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.good.\2',$os.path.basename($flow.__str__)) + ":'" + $trim_flow.__str__] - --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.trim\.flow$:'$trim_flow, '^\S+\.scrap\.flow$:'$scrap_flow,'^\S+\.flow\.files$:'$flow_files,'^\S+\.flow\.fasta$:'$flow_fasta + --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.trim\.flow$:'$trim_flow,'^\S+\.scrap\.flow$:'$scrap_flow,'^\S+\.flow\.files$:'$flow_files,'^\S+\.flow\.fasta$:'$flow_fasta --outputdir='$logfile.extra_files_path' --flow=$flow #if $minflows.__str__ != '': diff -r a90d1915a176 -r a3eed59297ea mothur/tools/mothur/trim.seqs.xml --- a/mothur/tools/mothur/trim.seqs.xml Thu May 30 08:59:17 2013 -0500 +++ b/mothur/tools/mothur/trim.seqs.xml Tue Jul 30 09:26:31 2013 -0500 @@ -3,7 +3,7 @@ mothur_wrapper.py --cmd='trim.seqs' - --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.trim\.fasta$:'$trim_fasta,'^\S+\.trim\.qual$:'$trim_qual,'^\S+\.scrap\.fasta$:'$scrap_fasta,'^\S+\.scrap\.qual$:'$scrap_qual,'^\S+\.groups$:'$groups_file + --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.trim\.fasta$:'$trim_fasta,'^\S+\.trim\.names$:'$trim_names,'^\S+\.trim\.qual$:'$trim_qual,'^\S+\.scrap\.fasta$:'$scrap_fasta,'^\S+\.scrap\.names$:'$scrap_names,'^\S+\.scrap\.qual$:'$scrap_qual,'^\S+\.groups$:'$groups_file --outputdir='$logfile.extra_files_path' #if int($minlength.__str__) > 0: --minlength=$minlength @@ -41,7 +41,7 @@ --sdiffs=$oligo.sdiffs #end if $oligo.keepforward - $oligo.allvalues + ##$oligo.allvalues #if $oligo.allfiles == True: --datasetid='$logfile.id' --new_file_path='$__new_file_path__' --new_datasets='^\S+?\.(\S+\.fasta)$:${fasta.ext}','^\S+?\.(\S+\.groups)$:groups' @@ -78,7 +78,7 @@ - + @@ -143,6 +143,9 @@ (qual['add'] == 'yes' and len(qual['qfile'].__str__) > 0) + + names != None + (qual['add'] == 'yes' and len(qual['qfile'].__str__) > 0)