This worked perfectly! Thanks
• 0 views
•
link
Hello, I have a big fasta file with hundreds of sequences. In some cases the fasta sequences do not have line breaks between them. I would like to add a line break before each header.
For example, right now it looks like this:
">name ATCGCTGCGAT>name2 ATATCGTGA"
And I want it to look like this:
">name ATCGCTGCGAT"
">name2 ATATCGTGA"
Thank you for any help!
sed 's/>/\n&/g' file
This worked perfectly! Thanks
that will work ... most of the time :-D
https://nsaunders.wordpress.com/2014/08/14/looking-for-in-all-the-wrong-places/
> dbj|AB047520.1| Homo sapiens gene for PER3, exon 1, 128+22(G->A)
> gb|AF134414.1|AF134414 Homo sapiens B-specific alpha 1->3 galactosyltransferase (ABO) mRNA, ABO-*B101 allele, complete cds
Log in to answer this question.