Entering edit mode
10.5 years ago
GP
▴
10
Hi All,
I want to remove empty fasta headers from the fasta file. I used the commands from this biostar post but they seems to work only for nt sequence file (strange!) and I have file with short aa sequnces, would be helpful if anyone help me with one liner perl or awk or similar. Thanks for any help.
infile.fasta
>Seq_1
CMRPQWSIGSN
>Seq_2
>Seq_3
WSIGSNCMRPQWCMRPQ
Output I want:
>Seq_1
CMRPQWSIGSN
>Seq_3
WSIGSNCMRPQWCMRPQ
Thanks Frederic!