I know for the reverse procedure, there are lots of methods available. But how can I change my fasta file with sequences like:

    >gi|189094002
    MDDAELNAIRQARLAELQRNAAGGGSSTNPSSSSSGGAQDSAQENMTITILNRVLTNEARERLSRQQTKITFNRKNIAADDDEDDDDFFD
    >gi|68485955
    MDDAELNAIRQARLAELQRNAAGGGSSTNPSSSSSGGAQDSAQENMTITILNRVLTNEARERLSRVKIVRRDSQQKQQTKITFNRKNIAGDDEDDDDFFD

to like:




    >gi|189094002
    MDDAELNAIRQARLAELQRNAAGGGSSTNPSSSSSGGAQDSAQENMTITILNRVLTNEARERLSR
    QQTKITFNRKNIAADDDEDDDDFFD
    >gi|68485955
    MDDAELNAIRQARLAELQRNAAGGGSSTNPSSSSSGGAQDSAQENMTITILNRVLTNEARERLSR
    VKIVRRDSQQKQQTKITFNRKNIAGDDEDDDDFFD

I know its just about inserting line breaks in each sequence, but  is there any way that I can check whether the fasta file is single line fasta or not, and if is, add line breaks in each sequence..

Ps. I am using windows..

Thanks for your consideration







from this

https://github.com/jimhester/fasta_utilities

you can use wrap.pl  "limits FASTA lines to 80 characters"

Or you can use from here

http://hannonlab.cshl.edu/fastx_toolkit/commandline.html#fastx_clipper_usage

fasta_formatter

fasta_formatter -i yourfile.fasta -w 80 -o yourout.fasta

> [-w N]       = max. sequence line width for output FASTA file.
> 			  When ZERO (the default), sequence lines will NOT be wrapped -
> 			  all nucleotides of each sequences will appear on a single 
> 			  line (good for scripting).

###**advice**: *If you will work in bioinformatics try any Linux flavor* 


