in reply to Re: merge sequences with new sequence insertion
in thread merge sequences with new sequence insertion

... print it out with the string to insert at the end ...

Doesn't that leave you with a  'nnnnnwhatevernnnnn' "joiner" sequence pasted at the end of the last line of the file? My interpretation of the OP was that joiners should be pasted only between the "contig" sequences. (But I have done no testing of your code.)

Replies are listed 'Best First'.
Re^3: merge sequences with new sequence insertion
by 2teez (Vicar) on Nov 27, 2013 at 04:59 UTC

    Hi AnomalousMonk,
    Awoshhh!!. My bad! You are right. I think I read wrong, the OP requirement. I think, rnaeye has a better implementation of that.

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me