I am new in python and want to see how this can be done in python (I can do this in R). I have a text file
myfile.txt with one column and thousands of rows as shown below. I want to convert this to fasta
result.fasta format as shown below. How can I do this in python?
ATGTGTGGTTTTCCCCC ATTGGCGGGGTTTTTCAGGGG ATGGGGGGGCCCCCCCCAAAAAA TTGGTGGGGGGGGGGGGAA
>1 ATGTGTGGTTTTCCCCC >2 ATTGGCGGGGTTTTTCAGGGG >3 ATGGGGGGGCCCCCCCCAAAAAA >4 TTGGTGGGGGGGGGGGGAA