Mercurial > repos > jjohnson > mothur_toolsuite
view mothur/tools/mothur/get.lineage.xml @ 7:7bfe1f843858
Support Mothur v1.20
trim.seqs - added name parameter and optional trim.names output
phylo.diversity - group optional, put group and groups in conditional - breaks
get.lineage remove.lineage - allow multiple taxons
dist.shared - added processors
consensus.seqs - add cutoff parameter
trim.seqs,phylo.diversity,get.lineage,remove.lineage,dist.shared,consensus.seqs
new tools - chimera.uchime deunique.tree count.seqs
shared/relabund files - Column headings
refactor lib/galaxy/datatypes/metagenomics.py
add filters to label and group selects in tool configs
mothur_wrapper.py updated with new tools params
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Mon, 27 Jun 2011 10:12:25 -0500 |
parents | 5265aa9067e0 |
children | 49058b1f8d3f |
line wrap: on
line source
<tool id="mothur_get_lineage" name="Get.lineage" version="1.20.0"> <description>Picks by taxon</description> <command interpreter="python"> mothur_wrapper.py #import re, os.path #set results = ["'^mothur.\S+\.logfile$:'" + $logfile.__str__] ## adds .pick before the last extension to the input file #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($taxonomy.__str__)) + ":'" + $taxonomy_out.__str__] --cmd='get.lineage' --outputdir='$logfile.extra_files_path' --taxonomy=$taxonomy --taxon="'$re.sub('(\s|,)+',',',$re.sub('\(\d+\)','',$taxon.value.__str__))'" #if $fasta_in.__str__ != "None" and len($fasta_in.__str__) > 0: --fasta=$fasta_in #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($fasta_in.__str__)) + ":'" + $fasta_out.__str__] #end if #if $group_in.__str__ != "None" and len($group_in.__str__) > 0: --group=$group_in #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($group_in.__str__)) + ":'" + $group_out.__str__] #end if #if $alignreport_in.__str__ != "None" and len($alignreport_in.__str__) > 0: --alignreport=$alignreport_in #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)$',r'\1.pick.align.report',$os.path.basename($alignreport_in.__str__)) + ":'" + $alignreport_out.__str__] #end if #if $list_in.__str__ != "None" and len($list_in.__str__) > 0: --list=$list_in #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($list_in.__str__)) + ":'" + $list_out.__str__] #end if #if $name_in.__str__ != "None" and len($name_in.__str__) > 0: --name=$name_in #set results = $results + ["'" + $re.sub(r'(^.*)\.(.*?)',r'\1.pick.\2',$os.path.basename($name_in.__str__)) + ":'" + $name_out.__str__] $dups #end if --result=#echo ','.join($results) </command> <inputs> <param name="taxonomy" type="data" format="seq.taxonomy" label="taxonomy - Taxonomy"/> <!-- <param name="taxons" type="select" size="120" multiple="true" label="Browse Taxons from Taxonomy"> <options from_dataset="taxonomy"> <column name="name" index="1"/> <column name="value" index="1"/> <filter type="unique_value" name="unique_taxon" column="1" /> <filter type="sort_by" name="sorted_taxon" column="1" /> </options> </param> --> <param name="taxon" type="text" area="True" size="5x120" label="taxon - Select Taxons for filtering" help="Enter 1 or more taxons separated by whitespace or commas"/> <param name="fasta_in" type="data" format="fasta" optional="true" label="fasta - Fasta Sequences"/> <param name="group_in" type="data" format="groups" optional="true" label="group - Groups"/> <param name="alignreport_in" type="data" format="align.report" optional="true" label="alignreport - Align Report"/> <param name="list_in" type="data" format="list" optional="true" label="list - OTU List"/> <param name="name_in" type="data" format="names" optional="true" label="name - Sequences Name reference"/> <param name="dups" type="boolean" truevalue="" falsevalue="--dups=false" checked="true" label="dups - Apply to duplicate names"/> </inputs> <outputs> <data format="html" name="logfile" label="${tool.name} on ${on_string}: logfile" /> <data format="seq.taxonomy" name="taxonomy_out" label="${tool.name} on ${on_string}: pick.taxonomy"/> <data format_source="fasta_in" name="fasta_out" label="${tool.name} on ${on_string}: pick.fasta"> <filter>fasta_in != None</filter> </data> <data format="groups" name="group_out" label="${tool.name} on ${on_string}: pick.group"> <filter>group_in != None</filter> </data> <data format="list" name="list_out" label="${tool.name} on ${on_string}: pick.list"> <filter>list_in != None</filter> </data> <data format="names" name="name_out" label="${tool.name} on ${on_string}: pick.name"> <filter>name_in != None</filter> </data> <data format="align.report" name="alignreport_out" label="${tool.name} on ${on_string}: pick.align.report"> <filter>alignreport_in != None</filter> </data> </outputs> <requirements> <requirement type="binary">mothur</requirement> </requirements> <tests> </tests> <help> **Mothur Overview** Mothur_, initiated by Dr. Patrick Schloss and his software development team in the Department of Microbiology and Immunology at The University of Michigan, provides bioinformatics for the microbial ecology community. .. _Mothur: http://www.mothur.org/wiki/Main_Page **Command Documenation** The get.lineage_ command reads a taxonomy_ file and a taxon and generates a new file that contains only the sequences in the that are from that taxon. You may also include either a fasta, name_, group_, list_, or align.report_ file to this command and mothur will generate new files for each of those containing only the selected sequences. .. _taxonomy: http://www.mothur.org/wiki/Taxonomy_outline .. _name: http://www.mothur.org/wiki/Name_file .. _group: http://www.mothur.org/wiki/Group_file .. _list: http://www.mothur.org/wiki/List_file .. _align.report: http://www.mothur.org/wiki/Align.seqs .. _get.lineage: http://www.mothur.org/wiki/Get.lineage </help> </tool>