I have a pretty weird problem. I did some calculations for bioinformatics, but my downstream apps won't accept my header information in its current format. In order to circumvent this I modified my fasta header information. To clarify:
The original header looks like this: ">abc1"
The modified header looks like this: ">abc1|abc1"
Now there's 1.3 million header files which were modified, all of them follow the "abc" pattern, with the number after it designating the contig number.
My calculation files are mostly tab separated values, but they contain the older header information. Is there any way I can use awk or sed or something similar to replace all occurrences of "abc1" with "abc1|abc1" automatically for all the 1.3 million occurrences? obviously all abc2's would be abc2|abc2, and so on.
Redoing the calculations w/ the modified header information would take quite a long time, so I really don't want to redo the work just because the header information changed.