s="s2">&quot;resid </span><span class="si">{}{}{}</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
            <span class="n">r</span><span class="p">[</span><span class="s2">&quot;i&quot;</span><span class="p">],</span> <span class="n">chain_sel</span><span class="p">,</span> <span class="n">atom_sel</span>
        <span class="p">)</span>

        <span class="c1"># adjust color, display type and b_factor if</span>
        <span class="c1">