view mothur/tools/mothur/remove.otus.xml @ 7:3cfe41810949 draft

Update to mothur v 1.27
author Jim Johnson <jj@umn.edu>
date Fri, 30 Nov 2012 08:16:51 -0600
parents a9d51d14f9e9
children
line wrap: on
line source

<tool id="mothur_remove_otus" name="Remove.otus" version="1.19.0">
 <description>Remove otus containing sequences from specified groups</description>
 <command interpreter="python">
  mothur_wrapper.py 
  ## output {group_file_name}.pick.{label}.groups   {list_file_name}.pick.{label}.list 
  #import re, os.path
  --cmd='remove.otus'
  --outputdir='$logfile.extra_files_path'
  --group=$group_in
  --list=$list_in
  --label=$label
  #if $groupnames.source == 'groups':
   #if $groupnames.groups.__str__ != "None" and len($groupnames.groups.__str__) > 0:
    --groups=$groupnames.groups
   #end if
  #else
   #if $groupnames.accnos.__str__ != "None" and len($groupnames.accnos.__str__) > 0:
    --accnos=$groupnames.accnos
   #end if
  #end if
  #set results = ["'^mothur.\S+\.logfile$:'" + $logfile.__str__]
  #set results = $results + ["'" + $re.sub(r'^(.*)\.(.*?)',r'\1.pick.' + $label.__str__ + '.\2',$os.path.basename($group_in.__str__)) + ":'" + $group_out.__str__]
  #set results = $results + ["'" + $re.sub(r'^(.*)\.(.*?)',r'\1.pick.'+ $label.__str__ + '.\2',$os.path.basename($list_in.__str__)) + ":'" + $list_out.__str__]
  --result=#echo ','.join($results)
 </command>
 <inputs>
  <param name="group_in" type="data" format="groups" label="group - Groups"/>
  <param name="list_in" type="data" format="list" label="list - OTU List"/>
  <param name="label" type="select" label="label - OTU Labels" >
   <options>
    <filter type="data_meta" ref="list_in" key="labels" />
   </options>
  </param>
  <conditional name="groupnames">
   <param name="source" type="select" label="Select Group Names from">
    <option value="groups">A List of Group Names</option>
    <option value="accnos">A History Group Name Accnos Dataset</option>
   </param>
   <when value="groups">
    <param name="groups" type="select" label="groups - Pick groups to remove" multiple="true" force_select="true">
     <help>At least one group must be selected</help>
     <options>
      <filter type="data_meta" ref="group_in" key="groups" />
     </options>
    </param>
   </when>
   <when value="accnos">
    <param name="accnos" type="data" format="accnos" optional="true" label="accnos - Group Names from your history"/>
   </when>
  </conditional>
 </inputs>
 <outputs>
  <data format="html" name="logfile" label="${tool.name} on ${on_string}: logfile" />
  <data format="groups" name="group_out" label="${tool.name} on ${on_string}: pick.groups"/>
  <data format="list" name="list_out" label="${tool.name} on ${on_string}: pick.list"/>
 </outputs>
 <requirements>
  <requirement type="package" version="1.27">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 remove.otus_ command removes otus from a list_ containing sequences from a specific group or set of groups.

.. _list: http://www.mothur.org/wiki/List_file
.. _remove.otus: http://www.mothur.org/wiki/Remove.otus


 </help>
</tool>