Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > 635dc0b7819f4e396a16d64269572c71 > files > 1832

biopython-doc-1.58-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.SeqIO._index</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.SeqIO-module.html">Package&nbsp;SeqIO</a> ::
        Module&nbsp;_index
      </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.SeqIO._index-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module _index</h1><p class="nomargin-top"><span class="codelink"><a href="Bio.SeqIO._index-pysrc.html">source&nbsp;code</a></span></p>
<p>Dictionary like indexing of sequence files (PRIVATE).</p>
  <p>You are not expected to access this module, or any of its code, 
  directly. This is all handled internally by the Bio.SeqIO.index(...) 
  function which is the public interface for this functionality.</p>
  <p>The basic idea is that we scan over a sequence file, looking for new 
  record markers. We then try and extract the string that 
  Bio.SeqIO.parse/read would use as the record id, ideally without actually
  parsing the full record. We then use a subclassed Python dictionary to 
  record the file offset for the record start against the record id.</p>
  <p>Note that this means full parsing is on demand, so any invalid or 
  problem record may not trigger an exception until it is accessed. This is
  by design.</p>
  <p>This means our dictionary like objects have in memory ALL the keys 
  (all the record identifiers), which shouldn't be a problem even with 
  second generation sequencing. If this is an issue later on, storing the 
  keys and offsets in a temp lookup file might be one idea (e.g. using 
  SQLite or an OBDA style index).</p>

<!-- ==================== CLASSES ==================== -->
<a name="section-Classes"></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">Classes</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Classes"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index._IndexedSeqFileDict-class.html" class="summary-name" onclick="show_private();">_IndexedSeqFileDict</a><br />
      Read only dictionary interface to a sequential sequence file.
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index._SQLiteManySeqFilesDict-class.html" class="summary-name" onclick="show_private();">_SQLiteManySeqFilesDict</a><br />
      Read only dictionary interface to many sequential sequence files.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.SeqFileRandomAccess-class.html" class="summary-name">SeqFileRandomAccess</a>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.SffRandomAccess-class.html" class="summary-name">SffRandomAccess</a><br />
      Random access to a Standard Flowgram Format (SFF) file.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.SffTrimedRandomAccess-class.html" class="summary-name">SffTrimedRandomAccess</a>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.SequentialSeqFileRandomAccess-class.html" class="summary-name">SequentialSeqFileRandomAccess</a>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.GenBankRandomAccess-class.html" class="summary-name">GenBankRandomAccess</a><br />
      Indexed dictionary like access to a GenBank file.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.EmblRandomAccess-class.html" class="summary-name">EmblRandomAccess</a><br />
      Indexed dictionary like access to an EMBL file.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.SwissRandomAccess-class.html" class="summary-name">SwissRandomAccess</a><br />
      Random access to a SwissProt file.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.UniprotRandomAccess-class.html" class="summary-name">UniprotRandomAccess</a><br />
      Random access to a UniProt XML file.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.IntelliGeneticsRandomAccess-class.html" class="summary-name">IntelliGeneticsRandomAccess</a><br />
      Random access to a IntelliGenetics file.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.TabRandomAccess-class.html" class="summary-name">TabRandomAccess</a><br />
      Random access to a simple tabbed file.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index.FastqRandomAccess-class.html" class="summary-name">FastqRandomAccess</a><br />
      Random access to a FASTQ file (any supported variant).
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></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">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Bio.SeqIO._index-module.html#_FormatToRandomAccess" class="summary-name" onclick="show_private();">_FormatToRandomAccess</a> = <code title="{'ace': &lt;class 'Bio.SeqIO._index.SequentialSeqFileRandomAccess'&gt;,
 'embl': &lt;class 'Bio.SeqIO._index.EmblRandomAccess'&gt;,
 'fasta': &lt;class 'Bio.SeqIO._index.SequentialSeqFileRandomAccess'&gt;,
 'fastq': &lt;class 'Bio.SeqIO._index.FastqRandomAccess'&gt;,
 'fastq-illumina': &lt;class 'Bio.SeqIO._index.FastqRandomAccess'&gt;,
 'fastq-sanger': &lt;class 'Bio.SeqIO._index.FastqRandomAccess'&gt;,
 'fastq-solexa': &lt;class 'Bio.SeqIO._index.FastqRandomAccess'&gt;,
 'gb': &lt;class 'Bio.SeqIO._index.GenBankRandomAccess'&gt;,
..."><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">ace</code><code class="variable-quote">'</code><code class="variable-op">: </code>&lt;class 'Bio.SeqIO._index.Seque<code class="variable-ellipsis">...</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="__package__"></a><span class="summary-name">__package__</span> = <code title="'Bio.SeqIO'"><code class="variable-quote">'</code><code class="variable-string">Bio.SeqIO</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES DETAILS ==================== -->
<a name="section-VariablesDetails"></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">Variables Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-VariablesDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="_FormatToRandomAccess"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_FormatToRandomAccess</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">ace</code><code class="variable-quote">'</code><code class="variable-op">: </code>&lt;class 'Bio.SeqIO._index.SequentialSeqFileRandomAccess'&gt;<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">embl</code><code class="variable-quote">'</code><code class="variable-op">: </code>&lt;class 'Bio.SeqIO._index.EmblRandomAccess'&gt;<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">fasta</code><code class="variable-quote">'</code><code class="variable-op">: </code>&lt;class 'Bio.SeqIO._index.SequentialSeqFileRandomAccess'&gt;<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">fastq</code><code class="variable-quote">'</code><code class="variable-op">: </code>&lt;class 'Bio.SeqIO._index.FastqRandomAccess'&gt;<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">fastq-illumina</code><code class="variable-quote">'</code><code class="variable-op">: </code>&lt;class 'Bio.SeqIO._index.FastqRandomAccess'&gt;<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">fastq-sanger</code><code class="variable-quote">'</code><code class="variable-op">: </code>&lt;class 'Bio.SeqIO._index.FastqRandomAccess'&gt;<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">fastq-solexa</code><code class="variable-quote">'</code><code class="variable-op">: </code>&lt;class 'Bio.SeqIO._index.FastqRandomAccess'&gt;<code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">gb</code><code class="variable-quote">'</code><code class="variable-op">: </code>&lt;class 'Bio.SeqIO._index.GenBankRandomAccess'&gt;<code class="variable-op">,</code>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </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 Thu Aug 18 18:19:22 2011
    </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>