fasta header trimming in a multifasta
Hi,
I have a multifasta with the transcripts of an assembled rnaseq and the header of each fasta is like this:
>TRINITY_DN5895_c0_g1_i1 len=288 path=[152:0-287] [-1, 152, -2]
I want to trim each fasta header to:
>TRINITY_DN5895_c0_g1_i1
Can you help me? Thanks
• 1,326 views
•
link
0 answers
No answers yet.
Log in to answer this question.
What have you tried? There are a lot of FASTA header manipulation posts on the site. A simple
sedwould solve your problem.This has been asked many, many times, please search. This question is so common it is asked even at very odd forums, like this one at Ask Ubuntu:
remove all letters after space in a line that start with specific character
Hello ignazio.fontana!
Questions similar to yours can already be found at:
We have closed your question to allow us to keep similar content in the same thread.
If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.
Cheers!
PS: Please search the site before opening a new question - you'll probably get answers faster that way.