![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How do i use regexes in one file to match FASTA sequences in another fileby lune (Pilgrim) |
on Nov 22, 2013 at 14:46 UTC ( #1063956=note: print w/replies, xml ) | Need Help?? |
Basically there is nothing special in reading regexes from a file in contrast to using predefined ones.
It boils down to the question, how to represent the matches and the number of matches in an efficient way. I created some files with simplified test input to concentrate on the problem: regexes.txt lines.txt Probably you will have to make changes to the "split"-Statements to match the format of your input. I am storing the matches in a Hash that uses the regex-expressions as keys and array references of matches as values. Update: added autodie; warnings are already active because of -w.
In Section
Seekers of Perl Wisdom
|
|