Actually, I always get it right, and it never occurred to me a problem similar to yours. Try it.
Copy this text below:
>seq1 agctgtagtc >seq2 agtctctctt >seq3 atgtataaaa
Save it as "test.fasta". Then in R do the following
my.dna<-read.fasta("test.fasta") write.fasta(sequences=my.dna,names=names(my.dna),file.out="write.my.dna.fasta")
If you open "write.my.dna.fasta", you will get the following:
>seq1 agctgtagtc >seq2 agtctctctt >seq3 atgtataaaa
Fabio marroni
source share