As a non-bio-monk, there are several questions raised in my mind by your post and by BrowserUk's reply above. With luck, they are trivial questions, and you can easily direct me to answers.

BrowserUk's solution produces the 50-base palindrome shown in the OP, but also produces other sequences that seem to be palindromic (again, to this bio-naif) and that are "embedded" within the longer sequence. Are these other sequences significant? Do you want to know about all, some or none of them?

In broader terms, consider the sequence
    ...CGATCG...CGATCG...CGATCG...
where ... represents zero or more bases that do not participate in any palindromic relationship. CGATCG is itself palindromic, each pair CGATCG...CGATCG presents another relationship (possibly more than one?), and the entire sequence presents...? Again, which of these seeming possibilities are significant? Which do you really want to know about?

I assume you are a biologist or are involved in biological computation, so these questions are probably pretty mundane. I hope it will not be much trouble to set me on the path to enlightenment.


In reply to Re: Finding biological palindromes by AnomalousMonk
in thread Finding biological palindromes by TJCooper

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.