python - Convert rows into columns -


I have one line in the row below and two columns have to be converted to format.

  & gt; 00000_x1688514 TGCTTGGACTACATATGGTTGAGGGTTGTA> 00001_x238968 TGCTTGGACTACATATTGTTGAGGGTTGTA ...   

is the desired product

  & gt; 00000_x1688514 TGCTTGGACTACATATGGTTGAGGGTTGTA> 00001_x238968 TGCTTGGACTACATATTGTTGAGGGTTGTA ...   

I appreciate any help thank you.

I do not know if you know about biosphere modules for reading / writing and more Genetic Work Your problem can be written in this way.

  #! Use / usr / bin / perl strict; Use warnings; Bio :: Seqio use; My $ file = 'o33.txt'; In my $ = Bio :: SeqIO- & gt; New (-file = & gt; $ file, -format = & gt; 'fork'); While (my $ seq = $ in-> next_seq ()) {print $ seq- & gt; ID, "\ t", $ seq-> Seq, "\ n"; } ___END__00000_x1688514 TGCTTGGTACT ATGGTTGAGTTGTA001001_x238968 TGCTTGGCTTCTGGGGTTTGTAA    

Comments