Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 763d6289e1351f2d34257ce697a3ccb7 > files > 187

biopython-doc-1.47-2mdv2008.1.x86_64.rpm

<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Bio.Clustalw.MultipleAlignCL</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Bio-module.html">Package&nbsp;Bio</a> ::
        <a href="Bio.Clustalw-module.html">Package&nbsp;Clustalw</a> ::
        Class&nbsp;MultipleAlignCL
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Bio.Clustalw.MultipleAlignCL-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class MultipleAlignCL</h1><p class="nomargin-top"><span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL">source&nbsp;code</a></span></p>
<p>Represent a clustalw multiple alignment command line.</p>
  <p>This is meant to make it easy to code the command line options you 
  want to submit to clustalw.</p>
  <p>Clustalw has a ton of options and things to do but this is set up to 
  represent a clustalw mutliple alignment.</p>
  <p>Warning: I don't use all of these options personally, so if you find 
  one to be broken for any reason, please let us know!</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Bio.Clustalw.MultipleAlignCL-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">sequence_file</span>,
        <span class="summary-sig-arg">command</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">clustalw</code><code class="variable-quote">'</code></span>)</span><br />
      Initialize some general parameters that can be set as attributes.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__str__"></a><span class="summary-sig-name">__str__</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Write out the command line as a string.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.__str__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="set_output"></a><span class="summary-sig-name">set_output</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">output_file</span>,
        <span class="summary-sig-arg">output_type</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">output_order</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">change_case</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">add_seqnos</span>=<span class="summary-sig-default">None</span>)</span><br />
      Set the output parameters for the command line.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_output">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Bio.Clustalw.MultipleAlignCL-class.html#set_guide_tree" class="summary-sig-name">set_guide_tree</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">tree_file</span>)</span><br />
      Provide a file to use as the guide tree for alignment.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_guide_tree">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="set_new_guide_tree"></a><span class="summary-sig-name">set_new_guide_tree</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">tree_file</span>)</span><br />
      Set the name of the guide tree file generated in the alignment.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_new_guide_tree">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Bio.Clustalw.MultipleAlignCL-class.html#set_protein_matrix" class="summary-sig-name">set_protein_matrix</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">protein_matrix</span>)</span><br />
      Set the type of protein matrix to use.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_protein_matrix">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Bio.Clustalw.MultipleAlignCL-class.html#set_dna_matrix" class="summary-sig-name">set_dna_matrix</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">dna_matrix</span>)</span><br />
      Set the type of DNA matrix to use.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_dna_matrix">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Bio.Clustalw.MultipleAlignCL-class.html#set_type" class="summary-sig-name">set_type</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">residue_type</span>)</span><br />
      Set the type of residues within the file.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_type">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="OUTPUT_TYPES"></a><span class="summary-name">OUTPUT_TYPES</span> = <code title="['GCG', 'GDE', 'PHYLIP', 'PIR', 'NEXUS', 'FASTA']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">GCG</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">GDE</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">PHYLIP</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">PIR</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">NEXUS</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">FASTA</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="OUTPUT_ORDER"></a><span class="summary-name">OUTPUT_ORDER</span> = <code title="['INPUT', 'ALIGNED']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">INPUT</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">ALIGNED</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="OUTPUT_CASE"></a><span class="summary-name">OUTPUT_CASE</span> = <code title="['LOWER', 'UPPER']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">LOWER</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">UPPER</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="OUTPUT_SEQNOS"></a><span class="summary-name">OUTPUT_SEQNOS</span> = <code title="['OFF', 'ON']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">OFF</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">ON</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="RESIDUE_TYPES"></a><span class="summary-name">RESIDUE_TYPES</span> = <code title="['PROTEIN', 'DNA']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">PROTEIN</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">DNA</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="PROTEIN_MATRIX"></a><span class="summary-name">PROTEIN_MATRIX</span> = <code title="['BLOSUM', 'PAM', 'GONNET', 'ID']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">BLOSUM</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">PAM</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">GONNET</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">ID</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="DNA_MATRIX"></a><span class="summary-name">DNA_MATRIX</span> = <code title="['IUB', 'CLUSTALW']"><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">IUB</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">CLUSTALW</code><code class="variable-quote">'</code><code class="variable-group">]</code></code>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">sequence_file</span>,
        <span class="sig-arg">command</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">clustalw</code><code class="variable-quote">'</code></span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Initialize some general parameters that can be set as attributes.</p>
  <p>Arguments: o sequence_file - The file to read the sequences for 
  alignment from. o command - The command used to run clustalw. This 
  defaults to just 'clustalw' (ie. assumes you have it on your path 
  somewhere).</p>
  <p>General attributes that can be set: o is_quick - if set as 1, will use
  a fast algorithm to create the alignment guide tree. o allow_negative - 
  allow negative values in the alignment matrix.</p>
  <p>Multiple alignment attributes that can be set as attributes: o 
  gap_open_pen - Gap opening penalty o gap_ext_pen - Gap extension penalty 
  o is_no_end_pen - A flag as to whether or not there should be a gap 
  separation penalty for the ends. o gap_sep_range - The gap separation 
  penalty range. o is_no_pgap - A flag to turn off residue specific gaps o 
  is_no_hgap - A flag to turn off hydrophilic gaps o h_gap_residues - A 
  list of residues to count a hydrophilic o max_div - A percent identity to
  use for delay (? - I don't undertand this!) o trans_weight - The weight 
  to use for transitions</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="set_guide_tree"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">set_guide_tree</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">tree_file</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_guide_tree">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Provide a file to use as the guide tree for alignment.</p>
  <p>Raises: o IOError - If the tree_file doesn't exist.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="set_protein_matrix"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">set_protein_matrix</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">protein_matrix</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_protein_matrix">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Set the type of protein matrix to use.</p>
  <p>Protein matrix can be either one of the defined types (blosum, pam, 
  gonnet or id) or a file with your own defined matrix.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="set_dna_matrix"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">set_dna_matrix</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">dna_matrix</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_dna_matrix">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Set the type of DNA matrix to use.</p>
  <p>The dna_matrix can either be one of the defined types (iub or 
  clustalw) or a file with the matrix to use.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="set_type"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">set_type</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">residue_type</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Bio.Clustalw-pysrc.html#MultipleAlignCL.set_type">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Set the type of residues within the file.</p>
  <p>Clustal tries to guess whether the info is protein or DNA based on the
  number of GATCs, but this can be wrong if you have a messed up protein or
  DNA you are working with, so this allows you to set it explicitly.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Sep 15 09:26:31 2008
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>