n class="n">protein_keys</span><span class="p">))}</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">proteins_to_shapemers</span> <span class="o">=</span> <span class="p">{</span><span class="n">k</span><span class="p">:</span> <span class="n">invariants</span><span class="p">[</span><span class="n">k</span><span class="p">]</span><span class="o">.</span><span class="n">get_shapemers_model</span><span class="p">(</span><span class="n">model</span><span class="p">