Hi
Please can anyone help with this problem.
I have been using Aliview to look at and edit fasta files. When saving the fasta file again Aliview adds gap characters '-' to the end of sequence data to make all sequences the same length.
Is there an easy way of getting rid of these again? There are too many to do it by hand and I don;t want to remove all - using a text editor as that will also change my sequence headers.
Please help
Thank you
James
If they are not present anywhere else but in places you want to remove them you could do
sed 's/\-//g' your_file > new_file
.