n><span class="kc">None</span><span class="p">):</span>
        <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">        Maps each shapemer to the proteins which have it and to the corresponding residue indices within these proteins</span>
<span class="sd">        Maps shapemer to (protein_key, residue_index)</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="k">if</span> <span class="n">protein_keys</span> <span class="ow">is</span> <span class="kc">None</span><span c