scripts have highest entropy.</p>
<h2 id="calculation-of-methylation-entropy"><a class="header" href="#calculation-of-methylation-entropy">Calculation of methylation entropy</a></h2>
<p>The calculation of methylation entropy has been described in the papers linked above. Formally, methylation entropy in <code>modkit</code> is calculated as:</p>
<p>\[
\text{ME} = \frac{-1}{N} \sum_{\textbf{N}} Pr(n_i) * \text{log}_{2}Pr(n_i)
\]</p>
<p>Where \( \textbf{N} \) is the set of all methylation patterns and \( Pr(n_