Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: File::Wrap and Fasta format

by aging acolyte (Pilgrim)
on Mar 13, 2003 at 12:21 UTC ( #242666=note: print w/ replies, xml ) Need Help??


in reply to File::Wrap and Fasta format

I have always liked a simple regex to format for fasta

for 80 nt per line:

$seq =~ s/([^\n]{80}|[^\n]{1,79}$)/$1\n/g; print $out ">$description\n$seq"; close $out;

A.A.


Comment on Re: File::Wrap and Fasta format
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://242666]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2015-07-04 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls