{"body": "<h1>Source code for iCallSV.checkHotSpotList</h1><div class=\"highlight\"><pre>\n<span></span><span class=\"sd\">&quot;&quot;&quot;</span>\n<span class=\"sd\">checkHotSpotList</span>\n<span class=\"sd\">~~~~~~~~~~~~~~~~</span>\n\n<span class=\"sd\">:Description: This module will read the hotspot file and tell if it is a hotspot or not</span>\n\n<span class=\"sd\">&quot;&quot;&quot;</span>\n\n<span class=\"sd\">&#39;&#39;&#39;</span>\n<span class=\"sd\">Created on Mar 17, 2015</span>\n<span class=\"sd\">Description: This module will read the hotspot file and tell if it is a hotspot or not</span>\n<span class=\"sd\">@author: Ronak H Shah</span>\n<span class=\"sd\">::Inputs::</span>\n<span class=\"sd\">HotSpotFile: List of Genes that have Hotspot Structural Variants (Tab-delimited Format without header:chr    start    end    geneName).</span>\n<span class=\"sd\">chr1: Chromosome location for 1st breakpoint</span>\n<span class=\"sd\">start1: Start location of the breakpoint</span>\n<span class=\"sd\">chr2: Chromosome location for 2nd breakpoint</span>\n<span class=\"sd\">start2: Start Location of the second breakpoint</span>\n<span class=\"sd\">&#39;&#39;&#39;</span>\n<span class=\"kn\">import</span> <span class=\"nn\">os</span>\n<span class=\"kn\">import</span> <span class=\"nn\">re</span>\n\n\n<span class=\"c1\"># Read the hotspot file and make a dictionary of it</span>\n<div class=\"viewcode-block\" id=\"ReadHotSpotFile\"><a class=\"viewcode-back\" href=\"../../../iCallSV/#iCallSV.checkHotSpotList.ReadHotSpotFile\">[docs]</a><span class=\"k\">def</span> <span class=\"nf\">ReadHotSpotFile</span><span class=\"p\">(</span><span class=\"n\">HotSpotFile</span><span class=\"p\">):</span>\n    <span class=\"sd\">&quot;&quot;&quot;</span>\n<span class=\"sd\">    Read the ``HotSpot region file``</span>\n\n<span class=\"sd\">    :param str HotSpotFile: str of file to be read.</span>\n<span class=\"sd\">    :return: A dict containing hotspot regions</span>\n<span class=\"sd\">    :rtype: dict</span>\n\n<span class=\"sd\">    &quot;&quot;&quot;</span>\n    <span class=\"n\">hotspotDict</span> <span class=\"o\">=</span> <span class=\"p\">{}</span>\n    <span class=\"k\">if</span> <span class=\"n\">os</span><span class=\"o\">.</span><span class=\"n\">path</span><span class=\"o\">.</span><span class=\"n\">isfile</span><span class=\"p\">(</span><span class=\"n\">HotSpotFile</span><span class=\"p\">):</span>\n        <span class=\"k\">with</span> <span class=\"nb\">open</span><span class=\"p\">(</span><span class=\"n\">HotSpotFile</span><span class=\"p\">,</span> <span class=\"s1\">&#39;r&#39;</span><span class=\"p\">)</span> <span class=\"k\">as</span> <span class=\"n\">filecontent</span><span class=\"p\">:</span>\n            <span class=\"k\">for</span> <span class=\"n\">line</span> <span class=\"ow\">in</span> <span class=\"n\">filecontent</span><span class=\"p\">:</span>\n                <span class=\"p\">(</span><span class=\"n\">chrom</span><span class=\"p\">,</span> <span class=\"n\">start</span><span class=\"p\">,</span> <span class=\"n\">end</span><span class=\"p\">,</span> <span class=\"n\">gene</span><span class=\"p\">)</span> <span class=\"o\">=</span> <span class=\"n\">line</span><span class=\"o\">.</span><span class=\"n\">rstrip</span><span class=\"p\">()</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"s2\">&quot;</span><span class=\"se\">\\t</span><span class=\"s2\">&quot;</span><span class=\"p\">)</span>\n                <span class=\"k\">if</span> <span class=\"n\">chrom</span> <span class=\"ow\">in</span> <span class=\"n\">hotspotDict</span><span class=\"p\">:</span>\n                    <span class=\"n\">val</span> <span class=\"o\">=</span> <span class=\"n\">hotspotDict</span><span class=\"p\">[</span><span class=\"n\">chrom</span><span class=\"p\">]</span>\n                    <span class=\"n\">hotspotDict</span><span class=\"p\">[</span><span class=\"n\">chrom</span><span class=\"p\">]</span> <span class=\"o\">=</span> <span class=\"n\">val</span> <span class=\"o\">+</span> <span class=\"s2\">&quot;#&quot;</span> <span class=\"o\">+</span> <span class=\"n\">start</span> <span class=\"o\">+</span> <span class=\"s2\">&quot;:&quot;</span> <span class=\"o\">+</span> <span class=\"n\">end</span> <span class=\"o\">+</span> <span class=\"s2\">&quot;:&quot;</span> <span class=\"o\">+</span> <span class=\"n\">gene</span>\n                <span class=\"k\">else</span><span class=\"p\">:</span>\n                    <span class=\"n\">hotspotDict</span><span class=\"p\">[</span><span class=\"n\">chrom</span><span class=\"p\">]</span> <span class=\"o\">=</span> <span class=\"n\">start</span> <span class=\"o\">+</span> <span class=\"s2\">&quot;:&quot;</span> <span class=\"o\">+</span> <span class=\"n\">end</span> <span class=\"o\">+</span> <span class=\"s2\">&quot;:&quot;</span> <span class=\"o\">+</span> <span class=\"n\">gene</span>\n    <span class=\"k\">return</span><span class=\"p\">(</span><span class=\"n\">hotspotDict</span><span class=\"p\">)</span></div>\n\n\n<span class=\"c1\"># Read the hotspot dictionary and tell if the event occurs in hotspot or not</span>\n<div class=\"viewcode-block\" id=\"CheckIfItIsHotspot\"><a class=\"viewcode-back\" href=\"../../../iCallSV/#iCallSV.checkHotSpotList.CheckIfItIsHotspot\">[docs]</a><span class=\"k\">def</span> <span class=\"nf\">CheckIfItIsHotspot</span><span class=\"p\">(</span><span class=\"n\">chr1</span><span class=\"p\">,</span> <span class=\"n\">start1</span><span class=\"p\">,</span> <span class=\"n\">chr2</span><span class=\"p\">,</span> <span class=\"n\">start2</span><span class=\"p\">,</span> <span class=\"n\">hotspotDict</span><span class=\"p\">):</span>\n    <span class=\"sd\">&quot;&quot;&quot;</span>\n<span class=\"sd\">    Check if coordinate are present in the ``hotspot region file``</span>\n\n<span class=\"sd\">    :param str chr1: str of the breakpoint in first chromosome</span>\n<span class=\"sd\">    :param int start1: int of the start location of the breakpoint in first chromosome</span>\n<span class=\"sd\">    :param str chr2: str of the breakpoint in second chromosome</span>\n<span class=\"sd\">    :param int start2: int of the start location of the breakpoint in second chromosome</span>\n<span class=\"sd\">    :param dict hotspotDict: A dict containing hotspot regions</span>\n<span class=\"sd\">    :return: A boolean tag indicating True or False</span>\n<span class=\"sd\">    :rtype: bool</span>\n\n<span class=\"sd\">    &quot;&quot;&quot;</span>\n    <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">False</span>\n    <span class=\"n\">chr1</span> <span class=\"o\">=</span> <span class=\"nb\">str</span><span class=\"p\">(</span><span class=\"n\">chr1</span><span class=\"p\">)</span>\n    <span class=\"n\">chr2</span> <span class=\"o\">=</span> <span class=\"nb\">str</span><span class=\"p\">(</span><span class=\"n\">chr2</span><span class=\"p\">)</span>\n    <span class=\"n\">start1</span> <span class=\"o\">=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">start1</span><span class=\"p\">)</span>\n    <span class=\"n\">start2</span> <span class=\"o\">=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">start2</span><span class=\"p\">)</span>\n    <span class=\"k\">if</span> <span class=\"n\">chr1</span> <span class=\"o\">==</span> <span class=\"n\">chr2</span><span class=\"p\">:</span>\n        <span class=\"n\">start</span> <span class=\"o\">=</span> <span class=\"n\">start1</span>\n        <span class=\"n\">end</span> <span class=\"o\">=</span> <span class=\"n\">start2</span>\n        <span class=\"k\">if</span> <span class=\"n\">chr1</span> <span class=\"ow\">in</span> <span class=\"n\">hotspotDict</span><span class=\"p\">:</span>\n            <span class=\"n\">allCordinates</span> <span class=\"o\">=</span> <span class=\"n\">hotspotDict</span><span class=\"p\">[</span><span class=\"n\">chr1</span><span class=\"p\">]</span>\n            <span class=\"n\">pattern</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">compile</span><span class=\"p\">(</span><span class=\"s2\">&quot;#&quot;</span><span class=\"p\">)</span>\n            <span class=\"n\">match</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">search</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">allCordinates</span><span class=\"p\">)</span>\n            <span class=\"k\">if</span><span class=\"p\">(</span><span class=\"n\">match</span><span class=\"p\">):</span>\n                <span class=\"n\">coordList</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">allCordinates</span><span class=\"p\">)</span>\n                <span class=\"k\">for</span> <span class=\"n\">item</span> <span class=\"ow\">in</span> <span class=\"n\">coordList</span><span class=\"p\">:</span>\n                    <span class=\"n\">pattern</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">compile</span><span class=\"p\">(</span><span class=\"s2\">&quot;:&quot;</span><span class=\"p\">)</span>\n                    <span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">,</span> <span class=\"n\">hsEnd</span><span class=\"p\">,</span> <span class=\"n\">gene</span><span class=\"p\">)</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">item</span><span class=\"p\">)</span>\n                    <span class=\"k\">if</span><span class=\"p\">((</span><span class=\"n\">start</span> <span class=\"o\">&gt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"n\">start</span> <span class=\"o\">&lt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsEnd</span><span class=\"p\">))</span> <span class=\"ow\">or</span> <span class=\"p\">(</span><span class=\"n\">end</span> <span class=\"o\">&gt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"n\">end</span> <span class=\"o\">&lt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsEnd</span><span class=\"p\">))):</span>\n                        <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">True</span>\n                        <span class=\"k\">return</span><span class=\"p\">(</span><span class=\"n\">hotspotTag</span><span class=\"p\">)</span>\n                    <span class=\"k\">else</span><span class=\"p\">:</span>\n                        <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">False</span>\n            <span class=\"k\">else</span><span class=\"p\">:</span>\n                <span class=\"n\">pattern</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">compile</span><span class=\"p\">(</span><span class=\"s2\">&quot;:&quot;</span><span class=\"p\">)</span>\n                <span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">,</span> <span class=\"n\">hsEnd</span><span class=\"p\">,</span> <span class=\"n\">gene</span><span class=\"p\">)</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">allCordinates</span><span class=\"p\">)</span>\n                <span class=\"k\">if</span><span class=\"p\">((</span><span class=\"n\">start</span> <span class=\"o\">&gt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"n\">start</span> <span class=\"o\">&lt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsEnd</span><span class=\"p\">))</span> <span class=\"ow\">or</span> <span class=\"p\">(</span><span class=\"n\">end</span> <span class=\"o\">&gt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"n\">end</span> <span class=\"o\">&lt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsEnd</span><span class=\"p\">))):</span>\n                    <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">True</span>\n                    <span class=\"k\">return</span><span class=\"p\">(</span><span class=\"n\">hotspotTag</span><span class=\"p\">)</span>\n                <span class=\"k\">else</span><span class=\"p\">:</span>\n                    <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">False</span>\n        <span class=\"k\">else</span><span class=\"p\">:</span>\n            <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">False</span>\n    <span class=\"k\">else</span><span class=\"p\">:</span>\n        <span class=\"k\">if</span> <span class=\"n\">chr1</span> <span class=\"ow\">in</span> <span class=\"n\">hotspotDict</span><span class=\"p\">:</span>\n            <span class=\"n\">allCordinates</span> <span class=\"o\">=</span> <span class=\"n\">hotspotDict</span><span class=\"p\">[</span><span class=\"n\">chr1</span><span class=\"p\">]</span>\n            <span class=\"n\">pattern</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">compile</span><span class=\"p\">(</span><span class=\"s2\">&quot;#&quot;</span><span class=\"p\">)</span>\n            <span class=\"n\">match</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">search</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">allCordinates</span><span class=\"p\">)</span>\n            <span class=\"k\">if</span><span class=\"p\">(</span><span class=\"n\">match</span><span class=\"p\">):</span>\n                <span class=\"n\">coordList</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">allCordinates</span><span class=\"p\">)</span>\n                <span class=\"k\">for</span> <span class=\"n\">item</span> <span class=\"ow\">in</span> <span class=\"n\">coordList</span><span class=\"p\">:</span>\n                    <span class=\"n\">pattern</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">compile</span><span class=\"p\">(</span><span class=\"s2\">&quot;:&quot;</span><span class=\"p\">)</span>\n                    <span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">,</span> <span class=\"n\">hsEnd</span><span class=\"p\">,</span> <span class=\"n\">gene</span><span class=\"p\">)</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">item</span><span class=\"p\">)</span>\n                    <span class=\"k\">if</span><span class=\"p\">(</span><span class=\"n\">start1</span> <span class=\"o\">&gt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"n\">start1</span> <span class=\"o\">&lt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsEnd</span><span class=\"p\">)):</span>\n                        <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">True</span>\n                        <span class=\"k\">return</span><span class=\"p\">(</span><span class=\"n\">hotspotTag</span><span class=\"p\">)</span>\n                    <span class=\"k\">else</span><span class=\"p\">:</span>\n                        <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">False</span>\n            <span class=\"k\">else</span><span class=\"p\">:</span>\n                <span class=\"n\">pattern</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">compile</span><span class=\"p\">(</span><span class=\"s2\">&quot;:&quot;</span><span class=\"p\">)</span>\n                <span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">,</span> <span class=\"n\">hsEnd</span><span class=\"p\">,</span> <span class=\"n\">gene</span><span class=\"p\">)</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">allCordinates</span><span class=\"p\">)</span>\n                <span class=\"k\">if</span><span class=\"p\">(</span><span class=\"n\">start1</span> <span class=\"o\">&gt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"n\">start1</span> <span class=\"o\">&lt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsEnd</span><span class=\"p\">)):</span>\n                    <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">True</span>\n                    <span class=\"k\">return</span><span class=\"p\">(</span><span class=\"n\">hotspotTag</span><span class=\"p\">)</span>\n                <span class=\"k\">else</span><span class=\"p\">:</span>\n                    <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">False</span>\n        <span class=\"k\">if</span> <span class=\"p\">((</span><span class=\"n\">chr2</span> <span class=\"ow\">in</span> <span class=\"n\">hotspotDict</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"p\">(</span><span class=\"n\">hotspotTag</span> <span class=\"ow\">is</span> <span class=\"kc\">False</span><span class=\"p\">)):</span>\n            <span class=\"n\">allCordinates</span> <span class=\"o\">=</span> <span class=\"n\">hotspotDict</span><span class=\"p\">[</span><span class=\"n\">chr2</span><span class=\"p\">]</span>\n            <span class=\"n\">pattern</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">compile</span><span class=\"p\">(</span><span class=\"s2\">&quot;#&quot;</span><span class=\"p\">)</span>\n            <span class=\"n\">match</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">search</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">allCordinates</span><span class=\"p\">)</span>\n            <span class=\"k\">if</span><span class=\"p\">(</span><span class=\"n\">match</span><span class=\"p\">):</span>\n                <span class=\"n\">coordList</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">allCordinates</span><span class=\"p\">)</span>\n                <span class=\"k\">for</span> <span class=\"n\">item</span> <span class=\"ow\">in</span> <span class=\"n\">coordList</span><span class=\"p\">:</span>\n                    <span class=\"n\">pattern</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">compile</span><span class=\"p\">(</span><span class=\"s2\">&quot;:&quot;</span><span class=\"p\">)</span>\n                    <span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">,</span> <span class=\"n\">hsEnd</span><span class=\"p\">,</span> <span class=\"n\">gene</span><span class=\"p\">)</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">item</span><span class=\"p\">)</span>\n                    <span class=\"k\">if</span><span class=\"p\">(</span><span class=\"n\">start2</span> <span class=\"o\">&gt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"n\">start2</span> <span class=\"o\">&lt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsEnd</span><span class=\"p\">)):</span>\n                        <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">True</span>\n                        <span class=\"k\">return</span><span class=\"p\">(</span><span class=\"n\">hotspotTag</span><span class=\"p\">)</span>\n                    <span class=\"k\">else</span><span class=\"p\">:</span>\n                        <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">False</span>\n            <span class=\"k\">else</span><span class=\"p\">:</span>\n                <span class=\"n\">pattern</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">compile</span><span class=\"p\">(</span><span class=\"s2\">&quot;:&quot;</span><span class=\"p\">)</span>\n                <span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">,</span> <span class=\"n\">hsEnd</span><span class=\"p\">,</span> <span class=\"n\">gene</span><span class=\"p\">)</span> <span class=\"o\">=</span> <span class=\"n\">re</span><span class=\"o\">.</span><span class=\"n\">split</span><span class=\"p\">(</span><span class=\"n\">pattern</span><span class=\"p\">,</span> <span class=\"n\">allCordinates</span><span class=\"p\">)</span>\n                <span class=\"k\">if</span><span class=\"p\">(</span><span class=\"n\">start2</span> <span class=\"o\">&gt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsStart</span><span class=\"p\">)</span> <span class=\"ow\">and</span> <span class=\"n\">start2</span> <span class=\"o\">&lt;=</span> <span class=\"nb\">int</span><span class=\"p\">(</span><span class=\"n\">hsEnd</span><span class=\"p\">)):</span>\n                    <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">True</span>\n                    <span class=\"k\">return</span><span class=\"p\">(</span><span class=\"n\">hotspotTag</span><span class=\"p\">)</span>\n                <span class=\"k\">else</span><span class=\"p\">:</span>\n                    <span class=\"n\">hotspotTag</span> <span class=\"o\">=</span> <span class=\"kc\">False</span>\n    <span class=\"k\">return</span><span class=\"p\">(</span><span class=\"n\">hotspotTag</span><span class=\"p\">)</span></div>\n</pre></div>", "title": "iCallSV.checkHotSpotList", "customsidebar": null, "current_page_name": "_modules/iCallSV/checkHotSpotList", "sidebars": null, "parents": [{"link": "../../", "title": "Module code"}], "alabaster_version": "0.7.9"}