view mothur/tools/mothur/hcluster.xml @ 0:3202a38e44d9

Migrated tool version 1.15.1 from old tool shed archive to new tool shed repository
author jjohnson
date Tue, 07 Jun 2011 17:32:23 -0400
parents
children fcc0778f6987
line wrap: on
line source

<tool id="mothur_hcluster" name="Hcluster" version="1.15.0">
 <description>Assign sequences to OTUs (Operational Taxonomic Unit)</description>
 <command interpreter="python">
  mothur_wrapper.py 
  --cmd='hcluster'
  --result='^mothur.\S+\.logfile$:'$logfile,'^\S+\.[fna]n\.sabund$:'$sabund,'^\S+\.[fna]n\.rabund$:'$rabund,'^\S+\.[fna]n\.list$:'$otulist
  --outputdir='$logfile.extra_files_path'
  #if $matrix.format == "column":
   --column=$matrix.dist
   --name=$matrix.name
  #elif $matrix.format == "phylip":
   --phylip=$matrix.dist
   #if $matrix.name.__str__ != "None" and len($matrix.name.__str__) > 0:
    --name=$matrix.name
   #end if
  #end if
  #if len($method.__str__) > 0:
   --method=$method
  #end if
  #if float($cutoff.__str__) > 0.0:
   --READ_cutoff=$cutoff
  #end if
  #if len($precision.__str__) > 0:
   --READ_precision=$precision
  #end if
  $hard
  $sorted
  $showabund
 </command>
 <inputs>
  <conditional name="matrix">
   <param name="format" type="select" label="Select a Distance Matrix Format" help="">
    <option value="column">Pairwise Column Matrix</option>
    <option value="phylip">Phylip Distance Matrix</option>
   </param>
   <when value="column">
    <param name="dist" type="data" format="pair.dist" label="column - Distance Matrix"/>
    <param name="name" type="data" format="names" label="name - Names"/>
   </when>
   <when value="phylip">
    <param name="dist" type="data" format="lower.dist,square.dist" label="phylip - Distance Matrix"/>
    <param name="name" type="data" format="names" optional="true" label="name - Names"/>
   </when>
  </conditional>
  <!-- ? conditional - to hide complexity -->
  <param name="cutoff" type="float" value="0.0" label="cutoff - Distance Cutoff threshold - ignored if not > 0" 
                 help="Ignore pairwise distances larger than this, a common value would be 0.10"/>
  <param name="hard" type="boolean" checked="false" truevalue="--hard=true" falsevalue="" label="hard - Use hard cutoff instead of rounding" 
                 help=""/>
  <param name="precision" type="select" optional="true" label="precision - Precision for rounding distance values"
                 help="Set higher precision for longer genome scale sequence lengths">
   <option value="10">.1</option>
   <option value="100" selected="true">.01</option>
   <option value="1000">.001</option>
   <option value="10000">.0001</option>
   <option value="100000">.00001</option>
   <option value="1000000">.000001</option>
  </param>

  <param name="method" type="select" label="method - Select a Clustering Method" help="">
   <option value="furthest" selected="true">Furthest neighbor</option>
   <option value="nearest">Nearest neighbor</option>
   <option value="average">Average neighbor</option>
   <option value="weighted">Weighted</option>
  </param>
  <param name="sorted" type="boolean" checked="false" truevalue="--sorted=true" falsevalue="" label="sorted - The input matrix is already sorted" 
                 help=""/>
  <param name="showabund" type="boolean" checked="true" truevalue="" falsevalue="--showabund=false" label="showabund - Verbose ouput" 
                 help=""/>

 </inputs>
 <outputs>
  <data format="html" name="logfile" label="${tool.name} on ${on_string}: logfile" />
  <data format="rabund" name="rabund" label="${tool.name} on ${on_string}: rabund (Rank)"/>
  <data format="sabund" name="sabund" label="${tool.name} on ${on_string}: sabund (Species)"/>
  <data format="list" name="otulist" label="${tool.name} on ${on_string}: list (OTU List)"/>
 </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 cluster_ command assign sequences to OTUs (Operational Taxonomy Unit). 

.. _cluster: http://www.mothur.org/wiki/Cluster


 </help>
</tool>