Hi all i ahve a multifats file contiing 3 differnent sequence(its around 3000 sequences) i want to separate them accoding to name. I need three diffeent file which contaion 3 diffent sequence. Can any one help me out
>pseudogenome_H131_84 Probable 9-O-acetyl-N-acetylneuraminic acid deacetylase
ATGAACGCAATAATATCGCCCAATTATTACTATGTTCTTACCGTTGCTGGTCAGTCTAAT
>pseudogenome_H134_4332 Probable 9-O-acetyl-N-acetylneuraminic acid deacetylase
ATGAACGCAATAATATCGCCCGATTATTACTATGTTCTTACCGTTGCTGGTCAGTCTAAT
GCCATGGCGTATGGCGAAGGACTGCCATTACCGGACAGGGAAGATGCGCCTCATCCCAGA
>pseudogenome_H24a_4333 Probable 9-O-acetyl-N-acetylneuraminic acid deacetylase
ATGAACGCAATAATATCGCCTGATTATTACTATATTCTTACCGTTGCTGGTCAGTCTAAT
GCCATGGCGTATGGCGAAGGACTGCCATTACCGGACAGGGAAGATGCGCCTCATCCCAGA
What have you tried? While many of us could simply write a script for you, you won't learn that way.
I can break file like this :
awk '/^>/{file=++n".fasta"} {print > file}' three.fas
now i need to sepatre accoding to name.It would be great if you could correct mistakes in your post.