This file is indexed.

/usr/share/doc/python-pyevolve-doc/html/module_allele.html is in python-pyevolve-doc 0.6~rc1+svn398+dfsg-9.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>GAllele – the genome alleles module &mdash; Pyevolve 0.6 final documentation</title>
    
    <link rel="stylesheet" href="_static/default_patch.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '0.6 final',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  false
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="Pyevolve 0.6 final documentation" href="index.html" />
    <link rel="up" title="pyevolve – the main pyevolve namespace" href="module_pyevolve.html" />
    <link rel="next" title="G1DBinaryString – the classical binary string chromosome" href="module_g1dbinarystring.html" />
    <link rel="prev" title="GenomeBase – the genomes base module" href="module_genomebase.html" />

  </head>
  <body role="document">  

    <div class="document">

      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <span class="target" id="module-GAllele"></span><div class="section" id="gallele-the-genome-alleles-module">
<h1><a class="reference internal" href="#module-GAllele" title="GAllele"><code class="xref py py-mod docutils literal"><span class="pre">GAllele</span></code></a> &#8211; the genome alleles module<a class="headerlink" href="#gallele-the-genome-alleles-module" title="Permalink to this headline"></a></h1>
<p>In this module, there are the <a class="reference internal" href="#GAllele.GAlleles" title="GAllele.GAlleles"><code class="xref py py-class docutils literal"><span class="pre">GAllele.GAlleles</span></code></a> class (which is the
class that holds the allele types) and all the
allele types to use with the supported chromosomes.</p>
<dl class="class">
<dt id="GAllele.GAlleleList">
<em class="property">class </em><code class="descclassname">GAllele.</code><code class="descname">GAlleleList</code><span class="sig-paren">(</span><em>options=None</em><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleList" title="Permalink to this definition"></a></dt>
<dd><p>GAlleleList Class - The list allele type</p>
<dl class="docutils">
<dt>Example:</dt>
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">alleles</span> <span class="o">=</span> <span class="n">GAlleles</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">choices</span> <span class="o">=</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">2</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="mi">4</span><span class="p">]</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">lst</span> <span class="o">=</span> <span class="n">GAlleleList</span><span class="p">(</span><span class="n">choices</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">alleles</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">lst</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">alleles</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">getRandomAllele</span><span class="p">()</span> <span class="ow">in</span> <span class="n">lst</span>
<span class="go">True</span>
</pre></div>
</div>
</dd>
</dl>
<dl class="method">
<dt id="GAllele.GAlleleList.add">
<code class="descname">add</code><span class="sig-paren">(</span><em>option</em><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleList.add" title="Permalink to this definition"></a></dt>
<dd><p>Appends one option to the options list</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>option</strong> &#8211; option to be added in the list</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="GAllele.GAlleleList.clear">
<code class="descname">clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleList.clear" title="Permalink to this definition"></a></dt>
<dd><p>Removes all the allele options from the list</p>
</dd></dl>

<dl class="method">
<dt id="GAllele.GAlleleList.getRandomAllele">
<code class="descname">getRandomAllele</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleList.getRandomAllele" title="Permalink to this definition"></a></dt>
<dd><p>Returns one random choice from the options list</p>
</dd></dl>

<dl class="method">
<dt id="GAllele.GAlleleList.remove">
<code class="descname">remove</code><span class="sig-paren">(</span><em>option</em><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleList.remove" title="Permalink to this definition"></a></dt>
<dd><p>Removes the option from list</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>option</strong> &#8211; remove the option from the list</td>
</tr>
</tbody>
</table>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="GAllele.GAlleleRange">
<em class="property">class </em><code class="descclassname">GAllele.</code><code class="descname">GAlleleRange</code><span class="sig-paren">(</span><em>begin=0</em>, <em>end=100</em>, <em>real=False</em><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleRange" title="Permalink to this definition"></a></dt>
<dd><p>GAlleleRange Class - The range allele type</p>
<dl class="docutils">
<dt>Example:</dt>
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">ranges</span> <span class="o">=</span> <span class="n">GAlleleRange</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">100</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">ranges</span><span class="o">.</span><span class="n">getRandomAllele</span><span class="p">()</span> <span class="o">&gt;=</span> <span class="mi">0</span> <span class="ow">and</span> <span class="n">ranges</span><span class="o">.</span><span class="n">getRandomAllele</span><span class="p">()</span> <span class="o">&lt;=</span> <span class="mi">100</span>
<span class="go">True</span>
</pre></div>
</div>
</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>begin</strong> &#8211; the begin of the range</li>
<li><strong>end</strong> &#8211; the end of the range</li>
<li><strong>real</strong> &#8211; if True, the range will be of real values</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="GAllele.GAlleleRange.add">
<code class="descname">add</code><span class="sig-paren">(</span><em>begin</em>, <em>end</em><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleRange.add" title="Permalink to this definition"></a></dt>
<dd><p>Add a new range</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>begin</strong> &#8211; the begin of range</li>
<li><strong>end</strong> &#8211; the end of the range</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="GAllele.GAlleleRange.clear">
<code class="descname">clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleRange.clear" title="Permalink to this definition"></a></dt>
<dd><p>Removes all ranges</p>
</dd></dl>

<dl class="method">
<dt id="GAllele.GAlleleRange.getMaximum">
<code class="descname">getMaximum</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleRange.getMaximum" title="Permalink to this definition"></a></dt>
<dd><p>Return the maximum of all the ranges</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">the maximum value</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="GAllele.GAlleleRange.getMinimum">
<code class="descname">getMinimum</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleRange.getMinimum" title="Permalink to this definition"></a></dt>
<dd><p>Return the minimum of all the ranges</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">the minimum value</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="GAllele.GAlleleRange.getRandomAllele">
<code class="descname">getRandomAllele</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleRange.getRandomAllele" title="Permalink to this definition"></a></dt>
<dd><p>Returns one random choice between the range</p>
</dd></dl>

<dl class="method">
<dt id="GAllele.GAlleleRange.getReal">
<code class="descname">getReal</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleRange.getReal" title="Permalink to this definition"></a></dt>
<dd><p>Returns True if the range is real or False if it is integer</p>
</dd></dl>

<dl class="method">
<dt id="GAllele.GAlleleRange.setReal">
<code class="descname">setReal</code><span class="sig-paren">(</span><em>flag=True</em><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleleRange.setReal" title="Permalink to this definition"></a></dt>
<dd><p>Sets True if the range is real or False if is integer</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>flag</strong> &#8211; True or False</td>
</tr>
</tbody>
</table>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="GAllele.GAlleles">
<em class="property">class </em><code class="descclassname">GAllele.</code><code class="descname">GAlleles</code><span class="sig-paren">(</span><em>allele_list=None</em>, <em>homogeneous=False</em><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleles" title="Permalink to this definition"></a></dt>
<dd><p>GAlleles Class - The set of alleles</p>
<dl class="docutils">
<dt>Example:</dt>
<dd><div class="first last highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">alleles</span> <span class="o">=</span> <span class="n">GAlleles</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">choices</span> <span class="o">=</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">2</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="mi">4</span><span class="p">]</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">lst</span> <span class="o">=</span> <span class="n">GAlleleList</span><span class="p">(</span><span class="n">choices</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">alleles</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">lst</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">alleles</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">getRandomAllele</span><span class="p">()</span> <span class="ow">in</span> <span class="n">lst</span>
<span class="go">True</span>
</pre></div>
</div>
</dd>
</dl>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>allele_list</strong> &#8211; the list of alleles</li>
<li><strong>homogeneous</strong> &#8211; if is True, all the alleles will be use only the first added</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="GAllele.GAlleles.add">
<code class="descname">add</code><span class="sig-paren">(</span><em>allele</em><span class="sig-paren">)</span><a class="headerlink" href="#GAllele.GAlleles.add" title="Permalink to this definition"></a></dt>
<dd><p>Appends one allele to the alleles list</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>allele</strong> &#8211; allele to be added</td>
</tr>
</tbody>
</table>
</dd></dl>

</dd></dl>

</div>


          </div>
        </div>
      </div>

      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="index.html">Documentation overview</a><ul>
  <li><a href="modules.html">Modules</a><ul>
  <li><a href="module_pyevolve.html"><code class="docutils literal"><span class="pre">pyevolve</span></code> &#8211; the main pyevolve namespace</a><ul>
      <li>Previous: <a href="module_genomebase.html" title="previous chapter"><code class="docutils literal"><span class="pre">GenomeBase</span></code> &#8211; the genomes base module</a></li>
      <li>Next: <a href="module_g1dbinarystring.html" title="next chapter"><code class="docutils literal"><span class="pre">G1DBinaryString</span></code> &#8211; the classical binary string chromosome</a></li>
  </ul></li>
  </ul></li>
  </ul></li>
</ul>
</div>

<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>

        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2010, Christian S. Perone.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 1.3.6</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.7</a>
      
    </div>

    

    
  </body>
</html>