="calculate_enrichment">
<a class="viewcode-back" href="../../../api/src.pySTIM.calculate_enrichment.html#src.pySTIM.calculate_enrichment">[docs]</a>
<span class="k">def</span> <span class="nf">calculate_enrichment</span><span class="p">(</span>
    <span class="n">adata</span><span class="p">:</span> <span class="s2">&quot;AnnData&quot;</span><span class="p">,</span> 
    <span class="n">groupby</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;cellt