pan><span class="p">(</span><span class="n">target_seq</span><span class="p">):</span>
                <span class="n">target_seq_index</span> <span class="o">=</span> <span class="n">i</span>

    <span class="c1"># get range and sequence of target</span>
    <span class="n">id_</span><span class="p">,</span> <span class="n">target_start</span><span class="p">,</span> <span class="n">target_end</span> <span class="o">=</span> <span class="n">parse_header</span><span class="p">(</span>
        <span class="