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

Re: combine 2 fasta files into 1

by BioLion (Curate)
on Jul 31, 2010 at 10:06 UTC ( #852236=note: print w/replies, xml ) Need Help??


in reply to combine 2 fasta files into 1

Not actually a fix to your code, but a slightly different approach, would be to temporarily store each FASTA record in a hash using the complete header as a key. This way you can check for existence of a known header and print out the records together.

I haven't tested it, but the problem you are getting looks like it could be a buffering issue? If you ++$|; # turn off buffering, the issue might go away, but I still think i would go with the hash approach as it doesn't rely on the records being in the same order etc... HTH

Just a something something...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852236]
help
Chatterbox?
[ambrus]: Corion: really? Does that mean the Prima watcher objects behave as handles that stop the watcher when they're destroyed, just like AnyEvent expects?
[ambrus]: "all the bugs" -- hehe, good luck

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2016-12-09 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (149 votes). Check out past polls.