<?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.Affy.CelFile</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> <a href="module-tree.html">Trees</a> </th> <!-- Index link --> <th> <a href="identifier-index.html">Indices</a> </th> <!-- Help link --> <th> <a href="help.html">Help</a> </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 Bio</a> :: <a href="Bio.Affy-module.html">Package Affy</a> :: Module CelFile </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 private</a>]</span></td></tr> <tr><td align="right"><span class="options" >[<a href="frames.html" target="_top">frames</a >] | <a href="Bio.Affy.CelFile-pysrc.html" target="_top">no frames</a>]</span></td></tr> </table> </td> </tr> </table> <h1 class="epydoc">Source Code for <a href="Bio.Affy.CelFile-module.html">Module Bio.Affy.CelFile</a></h1> <pre class="py-src"> <a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-comment"># Copyright 2004 by Harry Zuzan. All rights reserved.</tt> </tt> <a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># This code is part of the Biopython distribution and governed by its</tt> </tt> <a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># license. Please see the LICENSE file that should have been included</tt> </tt> <a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># as part of this package.</tt> </tt> <a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"><tt class="py-comment"></tt> </tt> <a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"><tt class="py-docstring">"""</tt> </tt> <a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"><tt class="py-docstring">No version number yet.</tt> </tt> <a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"><tt class="py-docstring">Classes for accessing the information in Affymetrix cel files.</tt> </tt> <a name="L10"></a><tt class="py-lineno"> 10</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L11"></a><tt class="py-lineno"> 11</tt> <tt class="py-line"><tt class="py-docstring">class CelParser: parses cel files</tt> </tt> <a name="L12"></a><tt class="py-lineno"> 12</tt> <tt class="py-line"><tt class="py-docstring">class CelRecord: stores the information from a cel file</tt> </tt> <a name="L13"></a><tt class="py-lineno"> 13</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L14"></a><tt class="py-lineno"> 14</tt> <tt class="py-line"><tt class="py-docstring">"""</tt> </tt> <a name="L15"></a><tt class="py-lineno"> 15</tt> <tt class="py-line"> </tt> <a name="L16"></a><tt class="py-lineno"> 16</tt> <tt class="py-line"><tt class="py-comment"># import _cel</tt> </tt> <a name="L17"></a><tt class="py-lineno"> 17</tt> <tt class="py-line"><tt class="py-comment"></tt> </tt> <a name="L18"></a><tt class="py-lineno"> 18</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package Bio=Bio-module.html"><a title="Bio" class="py-name" href="#" onclick="return doclink('link-0', 'Bio', 'link-0');">Bio</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module Bio.ParserSupport=Bio.ParserSupport-module.html"><a title="Bio.ParserSupport" class="py-name" href="#" onclick="return doclink('link-1', 'ParserSupport', 'link-1');">ParserSupport</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Class Bio.ParserSupport.AbstractConsumer=Bio.ParserSupport.AbstractConsumer-class.html"><a title="Bio.ParserSupport.AbstractConsumer" class="py-name" href="#" onclick="return doclink('link-2', 'AbstractConsumer', 'link-2');">AbstractConsumer</a></tt> </tt> <a name="L19"></a><tt class="py-lineno"> 19</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">Numeric</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt> <a name="L20"></a><tt class="py-lineno"> 20</tt> <tt class="py-line"> </tt> <a name="CelScanner"></a><div id="CelScanner-def"><a name="L21"></a><tt class="py-lineno"> 21</tt> <a class="py-toggle" href="#" id="CelScanner-toggle" onclick="return toggle('CelScanner');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelScanner-class.html">CelScanner</a><tt class="py-op">:</tt> </tt> </div><div id="CelScanner-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="CelScanner-expanded"><a name="L22"></a><tt class="py-lineno"> 22</tt> <tt class="py-line"> <tt class="py-docstring">"""Scannner for Affymetrix CEL files.</tt> </tt> <a name="L23"></a><tt class="py-lineno"> 23</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L24"></a><tt class="py-lineno"> 24</tt> <tt class="py-line"><tt class="py-docstring"> Methods:</tt> </tt> <a name="L25"></a><tt class="py-lineno"> 25</tt> <tt class="py-line"><tt class="py-docstring"> feed Feed data into the scanner.</tt> </tt> <a name="L26"></a><tt class="py-lineno"> 26</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L27"></a><tt class="py-lineno"> 27</tt> <tt class="py-line"><tt class="py-docstring"> The scanner generates (and calls the consumer) the following</tt> </tt> <a name="L28"></a><tt class="py-lineno"> 28</tt> <tt class="py-line"><tt class="py-docstring"> types of events:</tt> </tt> <a name="L29"></a><tt class="py-lineno"> 29</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L30"></a><tt class="py-lineno"> 30</tt> <tt class="py-line"><tt class="py-docstring"> Rows - the number of rows on the microarray</tt> </tt> <a name="L31"></a><tt class="py-lineno"> 31</tt> <tt class="py-line"><tt class="py-docstring"> Cols - the number of columns on the microarray</tt> </tt> <a name="L32"></a><tt class="py-lineno"> 32</tt> <tt class="py-line"><tt class="py-docstring"> StartIntensity - generated when the section [INTENSITY] is found</tt> </tt> <a name="L33"></a><tt class="py-lineno"> 33</tt> <tt class="py-line"><tt class="py-docstring"> ReadIntensity - one line in the section [INTENSITY]</tt> </tt> <a name="L34"></a><tt class="py-lineno"> 34</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L35"></a><tt class="py-lineno"> 35</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="CelScanner.feed"></a><div id="CelScanner.feed-def"><a name="L36"></a><tt class="py-lineno"> 36</tt> <a class="py-toggle" href="#" id="CelScanner.feed-toggle" onclick="return toggle('CelScanner.feed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelScanner-class.html#feed">feed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handle</tt><tt class="py-op">,</tt> <tt class="py-param">consumer</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelScanner.feed-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelScanner.feed-expanded"><a name="L37"></a><tt class="py-lineno"> 37</tt> <tt class="py-line"> <tt class="py-docstring">"""scanner.feed(handle, consumer)</tt> </tt> <a name="L38"></a><tt class="py-lineno"> 38</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L39"></a><tt class="py-lineno"> 39</tt> <tt class="py-line"><tt class="py-docstring"> Feed in a handle to a Cel file for scanning. handle is a file-like</tt> </tt> <a name="L40"></a><tt class="py-lineno"> 40</tt> <tt class="py-line"><tt class="py-docstring"> object that contains the Cel file. consumer is a Consumer</tt> </tt> <a name="L41"></a><tt class="py-lineno"> 41</tt> <tt class="py-line"><tt class="py-docstring"> object that will receive events as the report is scanned.</tt> </tt> <a name="L42"></a><tt class="py-lineno"> 42</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L43"></a><tt class="py-lineno"> 43</tt> <tt class="py-line"> <tt class="py-name">section</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt> <a name="L44"></a><tt class="py-lineno"> 44</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">line</tt> <tt class="py-keyword">in</tt> <tt id="link-3" class="py-name" targets="Variable Bio.LocusLink.web_parse.handle=Bio.LocusLink.web_parse-module.html#handle,Variable Bio.Ndb.handle=Bio.Ndb-module.html#handle"><a title="Bio.LocusLink.web_parse.handle Bio.Ndb.handle" class="py-name" href="#" onclick="return doclink('link-3', 'handle', 'link-3');">handle</a></tt><tt class="py-op">:</tt> </tt> <a name="L45"></a><tt class="py-lineno"> 45</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">line</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Class Bio.EUtils.DTDs.LinkOut.strip=Bio.EUtils.DTDs.LinkOut.strip-class.html,Method Bio.File.SGMLStripper.strip()=Bio.File.SGMLStripper-class.html#strip,Method Bio.SGMLExtractor.SGMLExtractor.strip()=Bio.SGMLExtractor.SGMLExtractor-class.html#strip"><a title="Bio.EUtils.DTDs.LinkOut.strip Bio.File.SGMLStripper.strip Bio.SGMLExtractor.SGMLExtractor.strip" class="py-name" href="#" onclick="return doclink('link-4', 'strip', 'link-4');">strip</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-string">""</tt><tt class="py-op">:</tt> <tt class="py-keyword">continue</tt> </tt> <a name="L46"></a><tt class="py-lineno"> 46</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">line</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-string">"["</tt><tt class="py-op">:</tt> </tt> <a name="L47"></a><tt class="py-lineno"> 47</tt> <tt class="py-line"> <tt class="py-name">section</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt> <a name="L48"></a><tt class="py-lineno"> 48</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">line</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-number">8</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-string">"[HEADER]"</tt><tt class="py-op">:</tt> </tt> <a name="L49"></a><tt class="py-lineno"> 49</tt> <tt class="py-line"> <tt class="py-name">section</tt> <tt class="py-op">=</tt> <tt class="py-string">"HEADER"</tt> </tt> <a name="L50"></a><tt class="py-lineno"> 50</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">line</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-number">11</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-string">"[INTENSITY]"</tt><tt class="py-op">:</tt> </tt> <a name="L51"></a><tt class="py-lineno"> 51</tt> <tt class="py-line"> <tt class="py-name">section</tt> <tt class="py-op">=</tt> <tt class="py-string">"INTENSITY"</tt> </tt> <a name="L52"></a><tt class="py-lineno"> 52</tt> <tt class="py-line"> <tt class="py-name">consumer</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method Bio.Affy.CelFile.CelConsumer.StartIntensity()=Bio.Affy.CelFile.CelConsumer-class.html#StartIntensity"><a title="Bio.Affy.CelFile.CelConsumer.StartIntensity" class="py-name" href="#" onclick="return doclink('link-5', 'StartIntensity', 'link-5');">StartIntensity</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> <a name="L53"></a><tt class="py-lineno"> 53</tt> <tt class="py-line"> <tt class="py-keyword">continue</tt> </tt> <a name="L54"></a><tt class="py-lineno"> 54</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">section</tt><tt class="py-op">==</tt><tt class="py-string">"HEADER"</tt><tt class="py-op">:</tt> </tt> <a name="L55"></a><tt class="py-lineno"> 55</tt> <tt class="py-line"> <tt id="link-6" class="py-name" targets="Method Bio.SwissProt.KeyWList._ListConsumer.keyword()=Bio.SwissProt.KeyWList._ListConsumer-class.html#keyword,Method Bio.SwissProt.SProt._RecordConsumer.keyword()=Bio.SwissProt.SProt._RecordConsumer-class.html#keyword,Method Bio.SwissProt.SProt._SequenceConsumer.keyword()=Bio.SwissProt.SProt._SequenceConsumer-class.html#keyword"><a title="Bio.SwissProt.KeyWList._ListConsumer.keyword Bio.SwissProt.SProt._RecordConsumer.keyword Bio.SwissProt.SProt._SequenceConsumer.keyword" class="py-name" href="#" onclick="return doclink('link-6', 'keyword', 'link-6');">keyword</a></tt><tt class="py-op">,</tt> <tt id="link-7" class="py-name" targets="Variable Bio.Translate.value=Bio.Translate-module.html#value"><a title="Bio.Translate.value" class="py-name" href="#" onclick="return doclink('link-7', 'value', 'link-7');">value</a></tt> <tt class="py-op">=</tt> <tt class="py-name">line</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Method Bio.Nexus.Trees.Tree.split()=Bio.Nexus.Trees.Tree-class.html#split,Method Bio.Restriction.Restriction.RestrictionBatch.split()=Bio.Restriction.Restriction.RestrictionBatch-class.html#split"><a title="Bio.Nexus.Trees.Tree.split Bio.Restriction.Restriction.RestrictionBatch.split" class="py-name" href="#" onclick="return doclink('link-8', 'split', 'link-8');">split</a></tt><tt class="py-op">(</tt><tt class="py-string">"="</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> </tt> <a name="L56"></a><tt class="py-lineno"> 56</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-9" class="py-name"><a title="Bio.SwissProt.KeyWList._ListConsumer.keyword Bio.SwissProt.SProt._RecordConsumer.keyword Bio.SwissProt.SProt._SequenceConsumer.keyword" class="py-name" href="#" onclick="return doclink('link-9', 'keyword', 'link-6');">keyword</a></tt><tt class="py-op">==</tt><tt class="py-string">"Cols"</tt><tt class="py-op">:</tt> <tt class="py-name">consumer</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Method Bio.Affy.CelFile.CelConsumer.Cols()=Bio.Affy.CelFile.CelConsumer-class.html#Cols"><a title="Bio.Affy.CelFile.CelConsumer.Cols" class="py-name" href="#" onclick="return doclink('link-10', 'Cols', 'link-10');">Cols</a></tt><tt class="py-op">(</tt><tt id="link-11" class="py-name"><a title="Bio.Translate.value" class="py-name" href="#" onclick="return doclink('link-11', 'value', 'link-7');">value</a></tt><tt class="py-op">)</tt> </tt> <a name="L57"></a><tt class="py-lineno"> 57</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-12" class="py-name"><a title="Bio.SwissProt.KeyWList._ListConsumer.keyword Bio.SwissProt.SProt._RecordConsumer.keyword Bio.SwissProt.SProt._SequenceConsumer.keyword" class="py-name" href="#" onclick="return doclink('link-12', 'keyword', 'link-6');">keyword</a></tt><tt class="py-op">==</tt><tt class="py-string">"Rows"</tt><tt class="py-op">:</tt> <tt class="py-name">consumer</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method Bio.Affy.CelFile.CelConsumer.Rows()=Bio.Affy.CelFile.CelConsumer-class.html#Rows"><a title="Bio.Affy.CelFile.CelConsumer.Rows" class="py-name" href="#" onclick="return doclink('link-13', 'Rows', 'link-13');">Rows</a></tt><tt class="py-op">(</tt><tt id="link-14" class="py-name"><a title="Bio.Translate.value" class="py-name" href="#" onclick="return doclink('link-14', 'value', 'link-7');">value</a></tt><tt class="py-op">)</tt> </tt> <a name="L58"></a><tt class="py-lineno"> 58</tt> <tt class="py-line"> <tt class="py-keyword">continue</tt> </tt> <a name="L59"></a><tt class="py-lineno"> 59</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">section</tt><tt class="py-op">==</tt><tt class="py-string">"INTENSITY"</tt><tt class="py-op">:</tt> </tt> <a name="L60"></a><tt class="py-lineno"> 60</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-string">"="</tt> <tt class="py-keyword">in</tt> <tt class="py-name">line</tt><tt class="py-op">:</tt> <tt class="py-keyword">continue</tt> </tt> <a name="L61"></a><tt class="py-lineno"> 61</tt> <tt class="py-line"> <tt class="py-name">consumer</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Method Bio.Affy.CelFile.CelConsumer.ReadIntensity()=Bio.Affy.CelFile.CelConsumer-class.html#ReadIntensity"><a title="Bio.Affy.CelFile.CelConsumer.ReadIntensity" class="py-name" href="#" onclick="return doclink('link-15', 'ReadIntensity', 'link-15');">ReadIntensity</a></tt><tt class="py-op">(</tt><tt class="py-name">line</tt><tt class="py-op">)</tt> </tt> </div></div><a name="L62"></a><tt class="py-lineno"> 62</tt> <tt class="py-line"> </tt> <a name="L63"></a><tt class="py-lineno"> 63</tt> <tt class="py-line"> </tt> <a name="CelConsumer"></a><div id="CelConsumer-def"><a name="L64"></a><tt class="py-lineno"> 64</tt> <a class="py-toggle" href="#" id="CelConsumer-toggle" onclick="return toggle('CelConsumer');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelConsumer-class.html">CelConsumer</a><tt class="py-op">(</tt><tt class="py-base-class">AbstractConsumer</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelConsumer-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="CelConsumer-expanded"><a name="L65"></a><tt class="py-lineno"> 65</tt> <tt class="py-line"> </tt> <a name="CelConsumer.__init__"></a><div id="CelConsumer.__init__-def"><a name="L66"></a><tt class="py-lineno"> 66</tt> <a class="py-toggle" href="#" id="CelConsumer.__init__-toggle" onclick="return toggle('CelConsumer.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelConsumer-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelConsumer.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelConsumer.__init__-expanded"><a name="L67"></a><tt class="py-lineno"> 67</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mean</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt> <a name="L68"></a><tt class="py-lineno"> 68</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stdev</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt> <a name="L69"></a><tt class="py-lineno"> 69</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_npix</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt> </div><a name="L70"></a><tt class="py-lineno"> 70</tt> <tt class="py-line"> </tt> <a name="CelConsumer.Cols"></a><div id="CelConsumer.Cols-def"><a name="L71"></a><tt class="py-lineno"> 71</tt> <a class="py-toggle" href="#" id="CelConsumer.Cols-toggle" onclick="return toggle('CelConsumer.Cols');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelConsumer-class.html#Cols">Cols</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelConsumer.Cols-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelConsumer.Cols-expanded"><a name="L72"></a><tt class="py-lineno"> 72</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cols</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt id="link-16" class="py-name"><a title="Bio.Translate.value" class="py-name" href="#" onclick="return doclink('link-16', 'value', 'link-7');">value</a></tt><tt class="py-op">)</tt> </tt> </div><a name="L73"></a><tt class="py-lineno"> 73</tt> <tt class="py-line"> </tt> <a name="CelConsumer.Rows"></a><div id="CelConsumer.Rows-def"><a name="L74"></a><tt class="py-lineno"> 74</tt> <a class="py-toggle" href="#" id="CelConsumer.Rows-toggle" onclick="return toggle('CelConsumer.Rows');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelConsumer-class.html#Rows">Rows</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelConsumer.Rows-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelConsumer.Rows-expanded"><a name="L75"></a><tt class="py-lineno"> 75</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_rows</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt id="link-17" class="py-name"><a title="Bio.Translate.value" class="py-name" href="#" onclick="return doclink('link-17', 'value', 'link-7');">value</a></tt><tt class="py-op">)</tt> </tt> </div><a name="L76"></a><tt class="py-lineno"> 76</tt> <tt class="py-line"> </tt> <a name="CelConsumer.StartIntensity"></a><div id="CelConsumer.StartIntensity-def"><a name="L77"></a><tt class="py-lineno"> 77</tt> <a class="py-toggle" href="#" id="CelConsumer.StartIntensity-toggle" onclick="return toggle('CelConsumer.StartIntensity');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelConsumer-class.html#StartIntensity">StartIntensity</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelConsumer.StartIntensity-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelConsumer.StartIntensity-expanded"><a name="L78"></a><tt class="py-lineno"> 78</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mean</tt> <tt class="py-op">=</tt> <tt class="py-name">zeros</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_rows</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cols</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-18" class="py-name" targets="Class Bio.Decode.Float=Bio.Decode.Float-class.html,Function Martel.Float()=Martel-module.html#Float"><a title="Bio.Decode.Float Martel.Float" class="py-name" href="#" onclick="return doclink('link-18', 'Float', 'link-18');">Float</a></tt><tt class="py-op">)</tt> </tt> <a name="L79"></a><tt class="py-lineno"> 79</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stdev</tt> <tt class="py-op">=</tt> <tt class="py-name">zeros</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_rows</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cols</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-19" class="py-name"><a title="Bio.Decode.Float Martel.Float" class="py-name" href="#" onclick="return doclink('link-19', 'Float', 'link-18');">Float</a></tt><tt class="py-op">)</tt> </tt> <a name="L80"></a><tt class="py-lineno"> 80</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_npix</tt> <tt class="py-op">=</tt> <tt class="py-name">zeros</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_rows</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cols</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">Int</tt><tt class="py-op">)</tt> </tt> </div><a name="L81"></a><tt class="py-lineno"> 81</tt> <tt class="py-line"> </tt> <a name="CelConsumer.ReadIntensity"></a><div id="CelConsumer.ReadIntensity-def"><a name="L82"></a><tt class="py-lineno"> 82</tt> <a class="py-toggle" href="#" id="CelConsumer.ReadIntensity-toggle" onclick="return toggle('CelConsumer.ReadIntensity');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelConsumer-class.html#ReadIntensity">ReadIntensity</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">line</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelConsumer.ReadIntensity-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelConsumer.ReadIntensity-expanded"><a name="L83"></a><tt class="py-lineno"> 83</tt> <tt class="py-line"> <tt class="py-name">y</tt><tt class="py-op">,</tt> <tt id="link-20" class="py-name" targets="Variable Bio.MarkovModel.x=Bio.MarkovModel-module.html#x,Variable Bio.Statistics.lowess.x=Bio.Statistics.lowess-module.html#x"><a title="Bio.MarkovModel.x Bio.Statistics.lowess.x" class="py-name" href="#" onclick="return doclink('link-20', 'x', 'link-20');">x</a></tt><tt class="py-op">,</tt> <tt class="py-name">mean</tt><tt class="py-op">,</tt> <tt class="py-name">stdev</tt><tt class="py-op">,</tt> <tt id="link-21" class="py-name" targets="Method Bio.Affy.CelFile.CelRecord.npix()=Bio.Affy.CelFile.CelRecord-class.html#npix"><a title="Bio.Affy.CelFile.CelRecord.npix" class="py-name" href="#" onclick="return doclink('link-21', 'npix', 'link-21');">npix</a></tt> <tt class="py-op">=</tt> <tt id="link-22" class="py-name" targets="Method Bio.GFF.FeatureAggregate.map()=Bio.GFF.FeatureAggregate-class.html#map"><a title="Bio.GFF.FeatureAggregate.map" class="py-name" href="#" onclick="return doclink('link-22', 'map', 'link-22');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">float</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="Bio.Nexus.Trees.Tree.split Bio.Restriction.Restriction.RestrictionBatch.split" class="py-name" href="#" onclick="return doclink('link-23', 'split', 'link-8');">split</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt> <a name="L84"></a><tt class="py-lineno"> 84</tt> <tt class="py-line"> <tt id="link-24" class="py-name"><a title="Bio.MarkovModel.x Bio.Statistics.lowess.x" class="py-name" href="#" onclick="return doclink('link-24', 'x', 'link-20');">x</a></tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt id="link-25" class="py-name"><a title="Bio.MarkovModel.x Bio.Statistics.lowess.x" class="py-name" href="#" onclick="return doclink('link-25', 'x', 'link-20');">x</a></tt><tt class="py-op">)</tt> </tt> <a name="L85"></a><tt class="py-lineno"> 85</tt> <tt class="py-line"> <tt class="py-name">y</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt> <a name="L86"></a><tt class="py-lineno"> 86</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mean</tt><tt class="py-op">[</tt><tt id="link-26" class="py-name"><a title="Bio.MarkovModel.x Bio.Statistics.lowess.x" class="py-name" href="#" onclick="return doclink('link-26', 'x', 'link-20');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">y</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">mean</tt> </tt> <a name="L87"></a><tt class="py-lineno"> 87</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stdev</tt><tt class="py-op">[</tt><tt id="link-27" class="py-name"><a title="Bio.MarkovModel.x Bio.Statistics.lowess.x" class="py-name" href="#" onclick="return doclink('link-27', 'x', 'link-20');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">y</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">stdev</tt> </tt> <a name="L88"></a><tt class="py-lineno"> 88</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_npix</tt><tt class="py-op">[</tt><tt id="link-28" class="py-name"><a title="Bio.MarkovModel.x Bio.Statistics.lowess.x" class="py-name" href="#" onclick="return doclink('link-28', 'x', 'link-20');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">y</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt id="link-29" class="py-name"><a title="Bio.Affy.CelFile.CelRecord.npix" class="py-name" href="#" onclick="return doclink('link-29', 'npix', 'link-21');">npix</a></tt><tt class="py-op">)</tt> </tt> </div></div><a name="L89"></a><tt class="py-lineno"> 89</tt> <tt class="py-line"> </tt> <a name="CelRecord"></a><div id="CelRecord-def"><a name="L90"></a><tt class="py-lineno"> 90</tt> <a class="py-toggle" href="#" id="CelRecord-toggle" onclick="return toggle('CelRecord');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelRecord-class.html">CelRecord</a><tt class="py-op">:</tt> </tt> </div><div id="CelRecord-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="CelRecord-expanded"><a name="L91"></a><tt class="py-lineno"> 91</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L92"></a><tt class="py-lineno"> 92</tt> <tt class="py-line"><tt class="py-docstring"> Stores the information in a cel file</tt> </tt> <a name="L93"></a><tt class="py-lineno"> 93</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L94"></a><tt class="py-lineno"> 94</tt> <tt class="py-line"><tt class="py-docstring"> Needs error handling.</tt> </tt> <a name="L95"></a><tt class="py-lineno"> 95</tt> <tt class="py-line"><tt class="py-docstring"> Needs to know the chip design.</tt> </tt> <a name="L96"></a><tt class="py-lineno"> 96</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L97"></a><tt class="py-lineno"> 97</tt> <tt class="py-line"> </tt> <a name="L98"></a><tt class="py-lineno"> 98</tt> <tt class="py-line"> </tt> <a name="CelRecord.__init__"></a><div id="CelRecord.__init__-def"><a name="L99"></a><tt class="py-lineno"> 99</tt> <a class="py-toggle" href="#" id="CelRecord.__init__-toggle" onclick="return toggle('CelRecord.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelRecord-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data_dict</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelRecord.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelRecord.__init__-expanded"><a name="L100"></a><tt class="py-lineno">100</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L101"></a><tt class="py-lineno">101</tt> <tt class="py-line"><tt class="py-docstring"> Pass the data attributes as a dictionary.</tt> </tt> <a name="L102"></a><tt class="py-lineno">102</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L103"></a><tt class="py-lineno">103</tt> <tt class="py-line"> <tt class="py-keyword">from</tt> <tt id="link-30" class="py-name" targets="Method Bio.Crystal.Crystal.copy()=Bio.Crystal.Crystal-class.html#copy,Method Bio.GA.Organism.Organism.copy()=Bio.GA.Organism.Organism-class.html#copy,Method Bio.GenBank.NCBIDictionary.copy()=Bio.GenBank.NCBIDictionary-class.html#copy,Method Bio.PDB.Vector'.Vector.copy()=Bio.PDB.Vector%27.Vector-class.html#copy,Method Bio.Prosite.ExPASyDictionary.copy()=Bio.Prosite.ExPASyDictionary-class.html#copy,Method Bio.Prosite.Pattern.PrositeTerm.copy()=Bio.Prosite.Pattern.PrositeTerm-class.html#copy,Method Bio.Prosite.Prodoc.ExPASyDictionary.copy()=Bio.Prosite.Prodoc.ExPASyDictionary-class.html#copy,Method Bio.PubMed.Dictionary.copy()=Bio.PubMed.Dictionary-class.html#copy,Method Bio.SwissProt.SProt.ExPASyDictionary.copy()=Bio.SwissProt.SProt.ExPASyDictionary-class.html#copy,Method Martel.Expression.Any.copy()=Martel.Expression.Any-class.html#copy,Method Martel.Expression.AnyEol.copy()=Martel.Expression.AnyEol-class.html#copy,Method Martel.Expression.Assert.copy()=Martel.Expression.Assert-class.html#copy,Method Martel.Expression.AtBeginning.copy()=Martel.Expression.AtBeginning-class.html#copy,Method Martel.Expression.AtEnd.copy()=Martel.Expression.AtEnd-class.html#copy,Method Martel.Expression.Debug.copy()=Martel.Expression.Debug-class.html#copy,Method Martel.Expression.Dot.copy()=Martel.Expression.Dot-class.html#copy,Method Martel.Expression.Expression.copy()=Martel.Expression.Expression-class.html#copy,Method Martel.Expression.ExpressionList.copy()=Martel.Expression.ExpressionList-class.html#copy,Method Martel.Expression.FastFeature.copy()=Martel.Expression.FastFeature-class.html#copy,Method Martel.Expression.Group.copy()=Martel.Expression.Group-class.html#copy,Method Martel.Expression.GroupRef.copy()=Martel.Expression.GroupRef-class.html#copy,Method Martel.Expression.HeaderFooter.copy()=Martel.Expression.HeaderFooter-class.html#copy,Method Martel.Expression.Literal.copy()=Martel.Expression.Literal-class.html#copy,Method Martel.Expression.MaxRepeat.copy()=Martel.Expression.MaxRepeat-class.html#copy,Method Martel.Expression.NullOp.copy()=Martel.Expression.NullOp-class.html#copy,Method Martel.Expression.ParseRecords.copy()=Martel.Expression.ParseRecords-class.html#copy,Method Martel.Expression.PassThrough.copy()=Martel.Expression.PassThrough-class.html#copy,Method Martel.Expression.Str.copy()=Martel.Expression.Str-class.html#copy,Method Martel.IterParser.IterHeaderFooter.copy()=Martel.IterParser.IterHeaderFooter-class.html#copy,Method Martel.IterParser.IterRecords.copy()=Martel.IterParser.IterRecords-class.html#copy,Method Martel.Iterator.IteratorRecords.copy()=Martel.Iterator.IteratorRecords-class.html#copy,Method Martel.Parser.HeaderFooterParser.copy()=Martel.Parser.HeaderFooterParser-class.html#copy,Method Martel.Parser.Parser.copy()=Martel.Parser.Parser-class.html#copy,Method Martel.Parser.RecordParser.copy()=Martel.Parser.RecordParser-class.html#copy"><a title="Bio.Crystal.Crystal.copy Bio.GA.Organism.Organism.copy Bio.GenBank.NCBIDictionary.copy Bio.PDB.Vector'.Vector.copy Bio.Prosite.ExPASyDictionary.copy Bio.Prosite.Pattern.PrositeTerm.copy Bio.Prosite.Prodoc.ExPASyDictionary.copy Bio.PubMed.Dictionary.copy Bio.SwissProt.SProt.ExPASyDictionary.copy Martel.Expression.Any.copy Martel.Expression.AnyEol.copy Martel.Expression.Assert.copy Martel.Expression.AtBeginning.copy Martel.Expression.AtEnd.copy Martel.Expression.Debug.copy Martel.Expression.Dot.copy Martel.Expression.Expression.copy Martel.Expression.ExpressionList.copy Martel.Expression.FastFeature.copy Martel.Expression.Group.copy Martel.Expression.GroupRef.copy Martel.Expression.HeaderFooter.copy Martel.Expression.Literal.copy Martel.Expression.MaxRepeat.copy Martel.Expression.NullOp.copy Martel.Expression.ParseRecords.copy Martel.Expression.PassThrough.copy Martel.Expression.Str.copy Martel.IterParser.IterHeaderFooter.copy Martel.IterParser.IterRecords.copy Martel.Iterator.IteratorRecords.copy Martel.Parser.HeaderFooterParser.copy Martel.Parser.Parser.copy Martel.Parser.RecordParser.copy" class="py-name" href="#" onclick="return doclink('link-30', 'copy', 'link-30');">copy</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">deepcopy</tt> <tt class="py-keyword">as</tt> <tt class="py-name">dcopy</tt> </tt> <a name="L104"></a><tt class="py-lineno">104</tt> <tt class="py-line"> </tt> <a name="L105"></a><tt class="py-lineno">105</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_intensities</tt> <tt class="py-op">=</tt> <tt class="py-name">dcopy</tt><tt class="py-op">(</tt><tt class="py-name">data_dict</tt><tt class="py-op">[</tt><tt class="py-string">'intensities'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt> <a name="L106"></a><tt class="py-lineno">106</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stdevs</tt> <tt class="py-op">=</tt> <tt class="py-name">dcopy</tt><tt class="py-op">(</tt><tt class="py-name">data_dict</tt><tt class="py-op">[</tt><tt class="py-string">'stdevs'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt> <a name="L107"></a><tt class="py-lineno">107</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_npix</tt> <tt class="py-op">=</tt> <tt class="py-name">dcopy</tt><tt class="py-op">(</tt><tt class="py-name">data_dict</tt><tt class="py-op">[</tt><tt class="py-string">'npix'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt> <a name="L108"></a><tt class="py-lineno">108</tt> <tt class="py-line"> </tt> <a name="L109"></a><tt class="py-lineno">109</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_nrows</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ncols</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_intensities</tt><tt class="py-op">.</tt><tt class="py-name">shape</tt> </tt> </div><a name="L110"></a><tt class="py-lineno">110</tt> <tt class="py-line"> </tt> <a name="L111"></a><tt class="py-lineno">111</tt> <tt class="py-line"> </tt> <a name="CelRecord.intensities"></a><div id="CelRecord.intensities-def"><a name="L112"></a><tt class="py-lineno">112</tt> <a class="py-toggle" href="#" id="CelRecord.intensities-toggle" onclick="return toggle('CelRecord.intensities');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelRecord-class.html#intensities">intensities</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelRecord.intensities-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelRecord.intensities-expanded"><a name="L113"></a><tt class="py-lineno">113</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L114"></a><tt class="py-lineno">114</tt> <tt class="py-line"><tt class="py-docstring"> Return a two dimensional array of probe cell intensities.</tt> </tt> <a name="L115"></a><tt class="py-lineno">115</tt> <tt class="py-line"><tt class="py-docstring"> Dimension 1 -> rows</tt> </tt> <a name="L116"></a><tt class="py-lineno">116</tt> <tt class="py-line"><tt class="py-docstring"> Dimension 2 -> columns</tt> </tt> <a name="L117"></a><tt class="py-lineno">117</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L118"></a><tt class="py-lineno">118</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_intensities</tt> </tt> </div><a name="L119"></a><tt class="py-lineno">119</tt> <tt class="py-line"> </tt> <a name="L120"></a><tt class="py-lineno">120</tt> <tt class="py-line"> </tt> <a name="CelRecord.stdevs"></a><div id="CelRecord.stdevs-def"><a name="L121"></a><tt class="py-lineno">121</tt> <a class="py-toggle" href="#" id="CelRecord.stdevs-toggle" onclick="return toggle('CelRecord.stdevs');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelRecord-class.html#stdevs">stdevs</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelRecord.stdevs-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelRecord.stdevs-expanded"><a name="L122"></a><tt class="py-lineno">122</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L123"></a><tt class="py-lineno">123</tt> <tt class="py-line"><tt class="py-docstring"> Return a two dimensional array of probe cell standard deviations.</tt> </tt> <a name="L124"></a><tt class="py-lineno">124</tt> <tt class="py-line"><tt class="py-docstring"> Dimension 1 -> rows</tt> </tt> <a name="L125"></a><tt class="py-lineno">125</tt> <tt class="py-line"><tt class="py-docstring"> Dimension 2 -> columns</tt> </tt> <a name="L126"></a><tt class="py-lineno">126</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L127"></a><tt class="py-lineno">127</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stdevs</tt> </tt> </div><a name="L128"></a><tt class="py-lineno">128</tt> <tt class="py-line"> </tt> <a name="L129"></a><tt class="py-lineno">129</tt> <tt class="py-line"> </tt> <a name="CelRecord.npix"></a><div id="CelRecord.npix-def"><a name="L130"></a><tt class="py-lineno">130</tt> <a class="py-toggle" href="#" id="CelRecord.npix-toggle" onclick="return toggle('CelRecord.npix');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelRecord-class.html#npix">npix</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelRecord.npix-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelRecord.npix-expanded"><a name="L131"></a><tt class="py-lineno">131</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L132"></a><tt class="py-lineno">132</tt> <tt class="py-line"><tt class="py-docstring"> Return a two dimensional array of the number of pixels in a probe cell.</tt> </tt> <a name="L133"></a><tt class="py-lineno">133</tt> <tt class="py-line"><tt class="py-docstring"> Dimension 1 -> rows</tt> </tt> <a name="L134"></a><tt class="py-lineno">134</tt> <tt class="py-line"><tt class="py-docstring"> Dimension 2 -> columns</tt> </tt> <a name="L135"></a><tt class="py-lineno">135</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L136"></a><tt class="py-lineno">136</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_npix</tt> </tt> </div><a name="L137"></a><tt class="py-lineno">137</tt> <tt class="py-line"> </tt> <a name="L138"></a><tt class="py-lineno">138</tt> <tt class="py-line"> </tt> <a name="CelRecord.nrows"></a><div id="CelRecord.nrows-def"><a name="L139"></a><tt class="py-lineno">139</tt> <a class="py-toggle" href="#" id="CelRecord.nrows-toggle" onclick="return toggle('CelRecord.nrows');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelRecord-class.html#nrows">nrows</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelRecord.nrows-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelRecord.nrows-expanded"><a name="L140"></a><tt class="py-lineno">140</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L141"></a><tt class="py-lineno">141</tt> <tt class="py-line"><tt class="py-docstring"> The number of rows of probe cells in an array.</tt> </tt> <a name="L142"></a><tt class="py-lineno">142</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L143"></a><tt class="py-lineno">143</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_nrows</tt> </tt> </div><a name="L144"></a><tt class="py-lineno">144</tt> <tt class="py-line"> </tt> <a name="CelRecord.ncols"></a><div id="CelRecord.ncols-def"><a name="L145"></a><tt class="py-lineno">145</tt> <a class="py-toggle" href="#" id="CelRecord.ncols-toggle" onclick="return toggle('CelRecord.ncols');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelRecord-class.html#ncols">ncols</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelRecord.ncols-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelRecord.ncols-expanded"><a name="L146"></a><tt class="py-lineno">146</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L147"></a><tt class="py-lineno">147</tt> <tt class="py-line"><tt class="py-docstring"> The number of columns of probe cells in an array.</tt> </tt> <a name="L148"></a><tt class="py-lineno">148</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L149"></a><tt class="py-lineno">149</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ncols</tt> </tt> </div><a name="L150"></a><tt class="py-lineno">150</tt> <tt class="py-line"> </tt> <a name="CelRecord.size"></a><div id="CelRecord.size-def"><a name="L151"></a><tt class="py-lineno">151</tt> <a class="py-toggle" href="#" id="CelRecord.size-toggle" onclick="return toggle('CelRecord.size');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelRecord-class.html#size">size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelRecord.size-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelRecord.size-expanded"><a name="L152"></a><tt class="py-lineno">152</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L153"></a><tt class="py-lineno">153</tt> <tt class="py-line"><tt class="py-docstring"> The size of the probe cell array as a tuple (nrows,ncols).</tt> </tt> <a name="L154"></a><tt class="py-lineno">154</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L155"></a><tt class="py-lineno">155</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_nrows</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ncols</tt> </tt> </div></div><a name="L156"></a><tt class="py-lineno">156</tt> <tt class="py-line"> </tt> <a name="L157"></a><tt class="py-lineno">157</tt> <tt class="py-line"> </tt> <a name="L158"></a><tt class="py-lineno">158</tt> <tt class="py-line"> </tt> <a name="CelParser"></a><div id="CelParser-def"><a name="L159"></a><tt class="py-lineno">159</tt> <a class="py-toggle" href="#" id="CelParser-toggle" onclick="return toggle('CelParser');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelParser-class.html">CelParser</a><tt class="py-op">:</tt> </tt> </div><div id="CelParser-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="CelParser-expanded"><a name="L160"></a><tt class="py-lineno">160</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L161"></a><tt class="py-lineno">161</tt> <tt class="py-line"><tt class="py-docstring"> Takes a handle to an Affymetrix cel file, parses the file and</tt> </tt> <a name="L162"></a><tt class="py-lineno">162</tt> <tt class="py-line"><tt class="py-docstring"> returns an instance of a CelRecord</tt> </tt> <a name="L163"></a><tt class="py-lineno">163</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L164"></a><tt class="py-lineno">164</tt> <tt class="py-line"><tt class="py-docstring"> This class needs error handling.</tt> </tt> <a name="L165"></a><tt class="py-lineno">165</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L166"></a><tt class="py-lineno">166</tt> <tt class="py-line"> </tt> <a name="CelParser.__init__"></a><div id="CelParser.__init__-def"><a name="L167"></a><tt class="py-lineno">167</tt> <a class="py-toggle" href="#" id="CelParser.__init__-toggle" onclick="return toggle('CelParser.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelParser-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handle</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelParser.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelParser.__init__-expanded"><a name="L168"></a><tt class="py-lineno">168</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L169"></a><tt class="py-lineno">169</tt> <tt class="py-line"><tt class="py-docstring"> Usually load the class with the cel file (not file name) as</tt> </tt> <a name="L170"></a><tt class="py-lineno">170</tt> <tt class="py-line"><tt class="py-docstring"> an argument.</tt> </tt> <a name="L171"></a><tt class="py-lineno">171</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L172"></a><tt class="py-lineno">172</tt> <tt class="py-line"> </tt> <a name="L173"></a><tt class="py-lineno">173</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_intensities</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt> <a name="L174"></a><tt class="py-lineno">174</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stdevs</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt> <a name="L175"></a><tt class="py-lineno">175</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_npix</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt> <a name="L176"></a><tt class="py-lineno">176</tt> <tt class="py-line"> </tt> <a name="L177"></a><tt class="py-lineno">177</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-31" class="py-name"><a title="Bio.LocusLink.web_parse.handle Bio.Ndb.handle" class="py-name" href="#" onclick="return doclink('link-31', 'handle', 'link-3');">handle</a></tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name" targets="Method Bio.Affy.CelFile.CelParser.parse()=Bio.Affy.CelFile.CelParser-class.html#parse,Method Bio.AlignAce.Parser.AlignAceParser.parse()=Bio.AlignAce.Parser.AlignAceParser-class.html#parse,Method Bio.AlignAce.Parser.CompareAceParser.parse()=Bio.AlignAce.Parser.CompareAceParser-class.html#parse,Function Bio.AlignIO.parse()=Bio.AlignIO-module.html#parse,Method Bio.Blast.NCBIStandalone.BlastErrorParser.parse()=Bio.Blast.NCBIStandalone.BlastErrorParser-class.html#parse,Method Bio.Blast.NCBIStandalone.BlastParser.parse()=Bio.Blast.NCBIStandalone.BlastParser-class.html#parse,Method Bio.Blast.NCBIStandalone.PSIBlastParser.parse()=Bio.Blast.NCBIStandalone.PSIBlastParser-class.html#parse,Method Bio.Blast.NCBIWWW.BlastParser.parse()=Bio.Blast.NCBIWWW.BlastParser-class.html#parse,Method Bio.Blast.NCBIXML.BlastParser.parse()=Bio.Blast.NCBIXML.BlastParser-class.html#parse,Function Bio.Blast.NCBIXML.parse()=Bio.Blast.NCBIXML-module.html#parse,Method Bio.CDD.RecordParser.parse()=Bio.CDD.RecordParser-class.html#parse,Method Bio.Compass.RecordParser.parse()=Bio.Compass.RecordParser-class.html#parse,Function Bio.Decode.parse()=Bio.Decode-module.html#parse,Method Bio.ECell.RecordParser.parse()=Bio.ECell.RecordParser-class.html#parse,Method Bio.EUtils.POM.POMDocument.parse()=Bio.EUtils.POM.POMDocument-class.html#parse,Module Bio.EUtils.parse=Bio.EUtils.parse-module.html,Method Bio.Emboss.Primer.Primer3Parser.parse()=Bio.Emboss.Primer.Primer3Parser-class.html#parse,Method Bio.Emboss.Primer.PrimerSearchParser.parse()=Bio.Emboss.Primer.PrimerSearchParser-class.html#parse,Method Bio.Enzyme.RecordParser.parse()=Bio.Enzyme.RecordParser-class.html#parse,Method Bio.Fasta.RecordParser.parse()=Bio.Fasta.RecordParser-class.html#parse,Method Bio.Fasta.SequenceParser.parse()=Bio.Fasta.SequenceParser-class.html#parse,Method Bio.GenBank.FeatureParser.parse()=Bio.GenBank.FeatureParser-class.html#parse,Function Bio.GenBank.LocationParser.parse()=Bio.GenBank.LocationParser-module.html#parse,Method Bio.GenBank.RecordParser.parse()=Bio.GenBank.RecordParser-class.html#parse,Method Bio.GenBank.Scanner.InsdcScanner.parse()=Bio.GenBank.Scanner.InsdcScanner-class.html#parse,Function Bio.Geo.parse()=Bio.Geo-module.html#parse,Method Bio.Gobase.RecordParser.parse()=Bio.Gobase.RecordParser-class.html#parse,Method Bio.IntelliGenetics.RecordParser.parse()=Bio.IntelliGenetics.RecordParser-class.html#parse,Method Bio.InterPro.InterProParser.parse()=Bio.InterPro.InterProParser-class.html#parse,Function Bio.KEGG.Compound.parse()=Bio.KEGG.Compound-module.html#parse,Function Bio.KEGG.Enzyme.parse()=Bio.KEGG.Enzyme-module.html#parse,Function Bio.KEGG.Map.parse()=Bio.KEGG.Map-module.html#parse,Method Bio.LocusLink.RecordParser.parse()=Bio.LocusLink.RecordParser-class.html#parse,Method Bio.LocusLink.web_parse.LocusLinkParser.parse()=Bio.LocusLink.web_parse.LocusLinkParser-class.html#parse,Method Bio.MEME.Parser.MASTParser.parse()=Bio.MEME.Parser.MASTParser-class.html#parse,Method Bio.MEME.Parser.MEMEParser.parse()=Bio.MEME.Parser.MEMEParser-class.html#parse,Method Bio.Medline.RecordParser.parse()=Bio.Medline.RecordParser-class.html#parse,Method Bio.MetaTool.RecordParser.parse()=Bio.MetaTool.RecordParser-class.html#parse,Method Bio.NBRF.RecordParser.parse()=Bio.NBRF.RecordParser-class.html#parse,Method Bio.Ndb.NdbParser.parse()=Bio.Ndb.NdbParser-class.html#parse,Method Bio.ParserSupport.AbstractParser.parse()=Bio.ParserSupport.AbstractParser-class.html#parse,Method Bio.Parsers.spark.GenericParser.parse()=Bio.Parsers.spark.GenericParser-class.html#parse,Method Bio.PopGen.FDist.RecordParser.parse()=Bio.PopGen.FDist.RecordParser-class.html#parse,Method Bio.PopGen.GenePop.RecordParser.parse()=Bio.PopGen.GenePop.RecordParser-class.html#parse,Function Bio.PopGen.GenePop.parse()=Bio.PopGen.GenePop-module.html#parse,Method Bio.Prosite.Prodoc.RecordParser.parse()=Bio.Prosite.Prodoc.RecordParser-class.html#parse,Function Bio.Prosite.Prodoc.parse()=Bio.Prosite.Prodoc-module.html#parse,Method Bio.Prosite.RecordParser.parse()=Bio.Prosite.RecordParser-class.html#parse,Function Bio.Prosite.parse()=Bio.Prosite-module.html#parse,Method Bio.Rebase.RecordParser.parse()=Bio.Rebase.RecordParser-class.html#parse,Method Bio.SCOP.Cla.Parser.parse()=Bio.SCOP.Cla.Parser-class.html#parse,Function Bio.SCOP.Cla.parse()=Bio.SCOP.Cla-module.html#parse,Method Bio.SCOP.Des.Parser.parse()=Bio.SCOP.Des.Parser-class.html#parse,Function Bio.SCOP.Des.parse()=Bio.SCOP.Des-module.html#parse,Method Bio.SCOP.Dom.Parser.parse()=Bio.SCOP.Dom.Parser-class.html#parse,Function Bio.SCOP.Dom.parse()=Bio.SCOP.Dom-module.html#parse,Method Bio.SCOP.Hie.Parser.parse()=Bio.SCOP.Hie.Parser-class.html#parse,Function Bio.SCOP.Hie.parse()=Bio.SCOP.Hie-module.html#parse,Method Bio.SCOP.Raf.Parser.parse()=Bio.SCOP.Raf.Parser-class.html#parse,Function Bio.SCOP.Raf.parse()=Bio.SCOP.Raf-module.html#parse,Method Bio.Saf.RecordParser.parse()=Bio.Saf.RecordParser-class.html#parse,Function Bio.SeqIO.parse()=Bio.SeqIO-module.html#parse,Method Bio.Sequencing.Ace.ACEParser.parse()=Bio.Sequencing.Ace.ACEParser-class.html#parse,Method Bio.Sequencing.Ace.RecordParser.parse()=Bio.Sequencing.Ace.RecordParser-class.html#parse,Method Bio.Sequencing.Phd.RecordParser.parse()=Bio.Sequencing.Phd.RecordParser-class.html#parse,Method Bio.SwissProt.KeyWList.ListParser.parse()=Bio.SwissProt.KeyWList.ListParser-class.html#parse,Function Bio.SwissProt.KeyWList.parse()=Bio.SwissProt.KeyWList-module.html#parse,Method Bio.SwissProt.SProt.RecordParser.parse()=Bio.SwissProt.SProt.RecordParser-class.html#parse,Method Bio.SwissProt.SProt.SequenceParser.parse()=Bio.SwissProt.SProt.SequenceParser-class.html#parse,Function Bio.SwissProt.parse()=Bio.SwissProt-module.html#parse,Method Bio.UniGene.RecordParser.parse()=Bio.UniGene.RecordParser-class.html#parse,Function Bio.Wise.psw.parse()=Bio.Wise.psw-module.html#parse,Method Martel.Parser.HeaderFooterParser.parse()=Martel.Parser.HeaderFooterParser-class.html#parse,Method Martel.Parser.Parser.parse()=Martel.Parser.Parser-class.html#parse,Method Martel.Parser.RecordParser.parse()=Martel.Parser.RecordParser-class.html#parse,Function Martel.msre_parse.parse()=Martel.msre_parse-module.html#parse"><a title="Bio.Affy.CelFile.CelParser.parse Bio.AlignAce.Parser.AlignAceParser.parse Bio.AlignAce.Parser.CompareAceParser.parse Bio.AlignIO.parse Bio.Blast.NCBIStandalone.BlastErrorParser.parse Bio.Blast.NCBIStandalone.BlastParser.parse Bio.Blast.NCBIStandalone.PSIBlastParser.parse Bio.Blast.NCBIWWW.BlastParser.parse Bio.Blast.NCBIXML.BlastParser.parse Bio.Blast.NCBIXML.parse Bio.CDD.RecordParser.parse Bio.Compass.RecordParser.parse Bio.Decode.parse Bio.ECell.RecordParser.parse Bio.EUtils.POM.POMDocument.parse Bio.EUtils.parse Bio.Emboss.Primer.Primer3Parser.parse Bio.Emboss.Primer.PrimerSearchParser.parse Bio.Enzyme.RecordParser.parse Bio.Fasta.RecordParser.parse Bio.Fasta.SequenceParser.parse Bio.GenBank.FeatureParser.parse Bio.GenBank.LocationParser.parse Bio.GenBank.RecordParser.parse Bio.GenBank.Scanner.InsdcScanner.parse Bio.Geo.parse Bio.Gobase.RecordParser.parse Bio.IntelliGenetics.RecordParser.parse Bio.InterPro.InterProParser.parse Bio.KEGG.Compound.parse Bio.KEGG.Enzyme.parse Bio.KEGG.Map.parse Bio.LocusLink.RecordParser.parse Bio.LocusLink.web_parse.LocusLinkParser.parse Bio.MEME.Parser.MASTParser.parse Bio.MEME.Parser.MEMEParser.parse Bio.Medline.RecordParser.parse Bio.MetaTool.RecordParser.parse Bio.NBRF.RecordParser.parse Bio.Ndb.NdbParser.parse Bio.ParserSupport.AbstractParser.parse Bio.Parsers.spark.GenericParser.parse Bio.PopGen.FDist.RecordParser.parse Bio.PopGen.GenePop.RecordParser.parse Bio.PopGen.GenePop.parse Bio.Prosite.Prodoc.RecordParser.parse Bio.Prosite.Prodoc.parse Bio.Prosite.RecordParser.parse Bio.Prosite.parse Bio.Rebase.RecordParser.parse Bio.SCOP.Cla.Parser.parse Bio.SCOP.Cla.parse Bio.SCOP.Des.Parser.parse Bio.SCOP.Des.parse Bio.SCOP.Dom.Parser.parse Bio.SCOP.Dom.parse Bio.SCOP.Hie.Parser.parse Bio.SCOP.Hie.parse Bio.SCOP.Raf.Parser.parse Bio.SCOP.Raf.parse Bio.Saf.RecordParser.parse Bio.SeqIO.parse Bio.Sequencing.Ace.ACEParser.parse Bio.Sequencing.Ace.RecordParser.parse Bio.Sequencing.Phd.RecordParser.parse Bio.SwissProt.KeyWList.ListParser.parse Bio.SwissProt.KeyWList.parse Bio.SwissProt.SProt.RecordParser.parse Bio.SwissProt.SProt.SequenceParser.parse Bio.SwissProt.parse Bio.UniGene.RecordParser.parse Bio.Wise.psw.parse Martel.Parser.HeaderFooterParser.parse Martel.Parser.Parser.parse Martel.Parser.RecordParser.parse Martel.msre_parse.parse" class="py-name" href="#" onclick="return doclink('link-32', 'parse', 'link-32');">parse</a></tt><tt class="py-op">(</tt><tt id="link-33" class="py-name"><a title="Bio.LocusLink.web_parse.handle Bio.Ndb.handle" class="py-name" href="#" onclick="return doclink('link-33', 'handle', 'link-3');">handle</a></tt><tt class="py-op">)</tt> </tt> </div><a name="L178"></a><tt class="py-lineno">178</tt> <tt class="py-line"> </tt> <a name="L179"></a><tt class="py-lineno">179</tt> <tt class="py-line"> </tt> <a name="CelParser.parse"></a><div id="CelParser.parse-def"><a name="L180"></a><tt class="py-lineno">180</tt> <a class="py-toggle" href="#" id="CelParser.parse-toggle" onclick="return toggle('CelParser.parse');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelParser-class.html#parse">parse</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handle</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelParser.parse-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelParser.parse-expanded"><a name="L181"></a><tt class="py-lineno">181</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L182"></a><tt class="py-lineno">182</tt> <tt class="py-line"><tt class="py-docstring"> Takes a handle to a cel file, parses it</tt> </tt> <a name="L183"></a><tt class="py-lineno">183</tt> <tt class="py-line"><tt class="py-docstring"> and stores it in the three arrays.</tt> </tt> <a name="L184"></a><tt class="py-lineno">184</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt> <a name="L185"></a><tt class="py-lineno">185</tt> <tt class="py-line"><tt class="py-docstring"> There is more information in the cel file that could be retrieved</tt> </tt> <a name="L186"></a><tt class="py-lineno">186</tt> <tt class="py-line"><tt class="py-docstring"> and stored in CelRecord. The chip type should be a priority.</tt> </tt> <a name="L187"></a><tt class="py-lineno">187</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L188"></a><tt class="py-lineno">188</tt> <tt class="py-line"> </tt> <a name="L189"></a><tt class="py-lineno">189</tt> <tt class="py-line"> <tt class="py-comment"># (self._intensities, self._stdevs, self._npix) = _cel.parse(data)</tt> </tt> <a name="L190"></a><tt class="py-lineno">190</tt> <tt class="py-line"><tt class="py-comment"></tt> <tt class="py-name">scanner</tt> <tt class="py-op">=</tt> <tt id="link-34" class="py-name" targets="Class Bio.Affy.CelFile.CelScanner=Bio.Affy.CelFile.CelScanner-class.html"><a title="Bio.Affy.CelFile.CelScanner" class="py-name" href="#" onclick="return doclink('link-34', 'CelScanner', 'link-34');">CelScanner</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> <a name="L191"></a><tt class="py-lineno">191</tt> <tt class="py-line"> <tt class="py-name">consumer</tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name" targets="Class Bio.Affy.CelFile.CelConsumer=Bio.Affy.CelFile.CelConsumer-class.html"><a title="Bio.Affy.CelFile.CelConsumer" class="py-name" href="#" onclick="return doclink('link-35', 'CelConsumer', 'link-35');">CelConsumer</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> <a name="L192"></a><tt class="py-lineno">192</tt> <tt class="py-line"> <tt class="py-name">scanner</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Method Bio.Affy.CelFile.CelScanner.feed()=Bio.Affy.CelFile.CelScanner-class.html#feed,Method Bio.AlignAce.Scanner.AlignAceScanner.feed()=Bio.AlignAce.Scanner.AlignAceScanner-class.html#feed,Method Bio.AlignAce.Scanner.CompareAceScanner.feed()=Bio.AlignAce.Scanner.CompareAceScanner-class.html#feed,Method Bio.Blast.NCBIStandalone._Scanner.feed()=Bio.Blast.NCBIStandalone._Scanner-class.html#feed,Method Bio.Blast.NCBIWWW._Scanner.feed()=Bio.Blast.NCBIWWW._Scanner-class.html#feed,Method Bio.CDD._Scanner.feed()=Bio.CDD._Scanner-class.html#feed,Method Bio.Compass._Scanner.feed()=Bio.Compass._Scanner-class.html#feed,Method Bio.ECell._Scanner.feed()=Bio.ECell._Scanner-class.html#feed,Method Bio.Emboss.Primer._Primer3Scanner.feed()=Bio.Emboss.Primer._Primer3Scanner-class.html#feed,Method Bio.Emboss.Primer._PrimerSearchScanner.feed()=Bio.Emboss.Primer._PrimerSearchScanner-class.html#feed,Method Bio.Enzyme._Scanner.feed()=Bio.Enzyme._Scanner-class.html#feed,Method Bio.GenBank.Scanner.InsdcScanner.feed()=Bio.GenBank.Scanner.InsdcScanner-class.html#feed,Method Bio.Gobase._Scanner.feed()=Bio.Gobase._Scanner-class.html#feed,Method Bio.IntelliGenetics._Scanner.feed()=Bio.IntelliGenetics._Scanner-class.html#feed,Method Bio.InterPro.InterProParser.feed()=Bio.InterPro.InterProParser-class.html#feed,Method Bio.LocusLink._Scanner.feed()=Bio.LocusLink._Scanner-class.html#feed,Method Bio.LocusLink.web_parse.LocusLinkParser.feed()=Bio.LocusLink.web_parse.LocusLinkParser-class.html#feed,Method Bio.MEME.Parser._MASTScanner.feed()=Bio.MEME.Parser._MASTScanner-class.html#feed,Method Bio.MEME.Parser._MEMEScanner.feed()=Bio.MEME.Parser._MEMEScanner-class.html#feed,Method Bio.Medline._Scanner.feed()=Bio.Medline._Scanner-class.html#feed,Method Bio.MetaTool._Scanner.feed()=Bio.MetaTool._Scanner-class.html#feed,Method Bio.NBRF._Scanner.feed()=Bio.NBRF._Scanner-class.html#feed,Method Bio.Ndb.NdbParser.feed()=Bio.Ndb.NdbParser-class.html#feed,Method Bio.NetCatch.ExtractUrls.feed()=Bio.NetCatch.ExtractUrls-class.html#feed,Method Bio.PopGen.FDist._Scanner.feed()=Bio.PopGen.FDist._Scanner-class.html#feed,Method Bio.PopGen.GenePop._Scanner.feed()=Bio.PopGen.GenePop._Scanner-class.html#feed,Method Bio.Prosite.Prodoc._Scanner.feed()=Bio.Prosite.Prodoc._Scanner-class.html#feed,Method Bio.Prosite._Scanner.feed()=Bio.Prosite._Scanner-class.html#feed,Method Bio.Rebase._Scanner.feed()=Bio.Rebase._Scanner-class.html#feed,Method Bio.Saf._Scanner.feed()=Bio.Saf._Scanner-class.html#feed,Method Bio.Sequencing.Ace._Scanner.feed()=Bio.Sequencing.Ace._Scanner-class.html#feed,Method Bio.Sequencing.Phd._Scanner.feed()=Bio.Sequencing.Phd._Scanner-class.html#feed,Method Bio.SwissProt.KeyWList._Scanner.feed()=Bio.SwissProt.KeyWList._Scanner-class.html#feed,Method Bio.SwissProt.SProt._Scanner.feed()=Bio.SwissProt.SProt._Scanner-class.html#feed,Method Bio.UniGene._Scanner.feed()=Bio.UniGene._Scanner-class.html#feed"><a title="Bio.Affy.CelFile.CelScanner.feed Bio.AlignAce.Scanner.AlignAceScanner.feed Bio.AlignAce.Scanner.CompareAceScanner.feed Bio.Blast.NCBIStandalone._Scanner.feed Bio.Blast.NCBIWWW._Scanner.feed Bio.CDD._Scanner.feed Bio.Compass._Scanner.feed Bio.ECell._Scanner.feed Bio.Emboss.Primer._Primer3Scanner.feed Bio.Emboss.Primer._PrimerSearchScanner.feed Bio.Enzyme._Scanner.feed Bio.GenBank.Scanner.InsdcScanner.feed Bio.Gobase._Scanner.feed Bio.IntelliGenetics._Scanner.feed Bio.InterPro.InterProParser.feed Bio.LocusLink._Scanner.feed Bio.LocusLink.web_parse.LocusLinkParser.feed Bio.MEME.Parser._MASTScanner.feed Bio.MEME.Parser._MEMEScanner.feed Bio.Medline._Scanner.feed Bio.MetaTool._Scanner.feed Bio.NBRF._Scanner.feed Bio.Ndb.NdbParser.feed Bio.NetCatch.ExtractUrls.feed Bio.PopGen.FDist._Scanner.feed Bio.PopGen.GenePop._Scanner.feed Bio.Prosite.Prodoc._Scanner.feed Bio.Prosite._Scanner.feed Bio.Rebase._Scanner.feed Bio.Saf._Scanner.feed Bio.Sequencing.Ace._Scanner.feed Bio.Sequencing.Phd._Scanner.feed Bio.SwissProt.KeyWList._Scanner.feed Bio.SwissProt.SProt._Scanner.feed Bio.UniGene._Scanner.feed" class="py-name" href="#" onclick="return doclink('link-36', 'feed', 'link-36');">feed</a></tt><tt class="py-op">(</tt><tt id="link-37" class="py-name"><a title="Bio.LocusLink.web_parse.handle Bio.Ndb.handle" class="py-name" href="#" onclick="return doclink('link-37', 'handle', 'link-3');">handle</a></tt><tt class="py-op">,</tt> <tt class="py-name">consumer</tt><tt class="py-op">)</tt> </tt> <a name="L193"></a><tt class="py-lineno">193</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_intensities</tt> <tt class="py-op">=</tt> <tt class="py-name">consumer</tt><tt class="py-op">.</tt><tt class="py-name">_mean</tt> </tt> <a name="L194"></a><tt class="py-lineno">194</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stdevs</tt> <tt class="py-op">=</tt> <tt class="py-name">consumer</tt><tt class="py-op">.</tt><tt class="py-name">_stdev</tt> </tt> <a name="L195"></a><tt class="py-lineno">195</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_npix</tt> <tt class="py-op">=</tt> <tt class="py-name">consumer</tt><tt class="py-op">.</tt><tt class="py-name">_npix</tt> </tt> <a name="L196"></a><tt class="py-lineno">196</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_nrows</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_intensities</tt><tt class="py-op">.</tt><tt class="py-name">shape</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt> <a name="L197"></a><tt class="py-lineno">197</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ncols</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_intensities</tt><tt class="py-op">.</tt><tt class="py-name">shape</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt> </div><a name="L198"></a><tt class="py-lineno">198</tt> <tt class="py-line"> </tt> <a name="L199"></a><tt class="py-lineno">199</tt> <tt class="py-line"> </tt> <a name="CelParser.__call__"></a><div id="CelParser.__call__-def"><a name="L200"></a><tt class="py-lineno">200</tt> <a class="py-toggle" href="#" id="CelParser.__call__-toggle" onclick="return toggle('CelParser.__call__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="Bio.Affy.CelFile.CelParser-class.html#__call__">__call__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> </div><div id="CelParser.__call__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CelParser.__call__-expanded"><a name="L201"></a><tt class="py-lineno">201</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt> <a name="L202"></a><tt class="py-lineno">202</tt> <tt class="py-line"><tt class="py-docstring"> Returns the parsed data as a CelRecord.</tt> </tt> <a name="L203"></a><tt class="py-lineno">203</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt> <a name="L204"></a><tt class="py-lineno">204</tt> <tt class="py-line"> </tt> <a name="L205"></a><tt class="py-lineno">205</tt> <tt class="py-line"> <tt class="py-name">record_dict</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt> <a name="L206"></a><tt class="py-lineno">206</tt> <tt class="py-line"> <tt class="py-name">record_dict</tt><tt class="py-op">[</tt><tt class="py-string">'intensities'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_intensities</tt> </tt> <a name="L207"></a><tt class="py-lineno">207</tt> <tt class="py-line"> <tt class="py-name">record_dict</tt><tt class="py-op">[</tt><tt class="py-string">'stdevs'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stdevs</tt> </tt> <a name="L208"></a><tt class="py-lineno">208</tt> <tt class="py-line"> <tt class="py-name">record_dict</tt><tt class="py-op">[</tt><tt class="py-string">'npix'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_npix</tt> </tt> <a name="L209"></a><tt class="py-lineno">209</tt> <tt class="py-line"> </tt> <a name="L210"></a><tt class="py-lineno">210</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-38" class="py-name" targets="Class Bio.Affy.CelFile.CelRecord=Bio.Affy.CelFile.CelRecord-class.html"><a title="Bio.Affy.CelFile.CelRecord" class="py-name" href="#" onclick="return doclink('link-38', 'CelRecord', 'link-38');">CelRecord</a></tt><tt class="py-op">(</tt><tt class="py-name">record_dict</tt><tt class="py-op">)</tt> </tt> </div></div><a name="L211"></a><tt class="py-lineno">211</tt> <tt class="py-line"> </tt><script type="text/javascript"> <!-- expandto(location.href); // --> </script> </pre> <br /> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Tree link --> <th> <a href="module-tree.html">Trees</a> </th> <!-- Index link --> <th> <a href="identifier-index.html">Indices</a> </th> <!-- Help link --> <th> <a href="help.html">Help</a> </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:41 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>