an class="n">shapemer</span><span class="p">]:</span>
            <span class="n">shapemer_residues</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">proteins_to_shapemer_residue_indices</span><span class="p">[</span><span class="n">protein_key</span><span class="p">][</span><span class="n">residue_index</span><span class="p">]</span>
            <span class="k">for</span> <span class="n">residue</span> <span class="ow">in</span> <span class="n">shapemer_res