i think i understand what you're after. a feature of the TK language is tagging in text/area fields. the tags are a way of marking positions (starting and ending) in text, which does not change the character count of the text. so what i have in mind is that you compare the reference sequence to each comparative sequence in turn, adding tags as you go. then at the end you do some post-processing to insert/delete/amend/other the text field depending on the tags inserted. or if you want the tags to immediately do something, you can bind them to actions (callbacks.) Anyway, I can't say enough about this really neat feature in TK. Most perls have TK or you can install it and the bindings.
hope that's what you were looking for.
the hardest line to type correctly is: stty erase ^H

In reply to Re: how to construct multiple sequence alignment from group of pairwise alignments by aquarium
in thread how to construct multiple sequence alignment from group of pairwise alignments by gudluck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.