Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: pattern matching to separate data

by citromatik (Curate)
on May 04, 2009 at 08:43 UTC ( #761673=note: print w/ replies, xml ) Need Help??


in reply to pattern matching to separate data

Another alternative using Tie::File::AnyData::Bio::Fasta:

use strict; use warnings; use Fcntl qw/:DEFAULT/; use Tie::File::AnyData::Bio::Fasta; tie my @arr, 'Tie::File::AnyData::Bio::Fasta', 'input.txt' or die $!; tie my @geneids, 'Tie::File::AnyData::Bio::Fasta', 'GENEID.out',mode = +> O_RDWR | O_CREAT or die $!; tie my @protids, 'Tie::File::AnyData::Bio::Fasta', 'PROTID.out',mode = +> O_RDWR | O_CREAT or die $!; @geneids = grep {/GENEID/} @arr; @protids = grep {/PROTID/} @arr; untie @arr; untie @geneids; untie @protids;

citromatik


Comment on Re: pattern matching to separate data
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-09-20 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (155 votes), past polls