Hi all,
I'm trying to remove extra info from the headers in a fasta file. For example, one of the headers looks like this:
>TRINITY_DN2114_c0_g1_i25 len=23510 path=[5:0-984 11:985-5200 13:5201-5226 14:5227-7391 16:7392-11682 18:11683-12445 20:12446-17359 21:17360-17390 23:17391-19171 24:19172-19243 25:19244-21000 26:21001-21804 27:21805-22955 32:22956-23509]
And I want it to look like this:
>TRINITY_DN2114_c0_g1_i25
There are no quotation marks in the header, but I had to include them to include the ">" sign.
I've been trying to do this with sed, but I can't get it to work! Any help is greatly appreciated.
You had to include the quotes because the formatting option you were using was the blockquote formatting option, which is not the right one here. You need to use the code formatting option (the
101010
button). It can be challenging to figure out the right option without some trial and error. I've fixed it for you now.