ass="k">if</span> <span class="n">sec_struct</span> <span class="ow">in</span> <span class="n">state_mapping</span><span class="p">:</span>
            <span class="c1"># create pymol command</span>
            <span class="n">cmd</span> <span class="o">=</span> <span class="s2">&quot;alter (resi </span><span class="si">{}{}</span><span class="s2">), ss=&#39;</span><span class="si">{}</span><span class="s2">&#39;&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
     