Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Searching file and printing

by MidLifeXis (Monsignor)
on Dec 30, 2011 at 15:24 UTC ( [id://945650]=note: print w/replies, xml ) Need Help??


in reply to Searching file and printing

It appears that you are intending to read through the file once for each protein in @acnumbers. You may be better off opening PFAMDB inside of your foreach $acnumbers... loop, or doing a seek to the beginning of the file prior to the inner foreach loop.

The way it is currently written, PFAMDB is being read once to the end of file, where it remains for every other protein in @acnumbers.

You may also want to explore BioPerl if you have not already.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: Searching file and printing
by jemswira (Novice) on Dec 31, 2011 at 02:55 UTC

    OHHH thanks! it works now.

    also, how would you remove the =GF AC before printing? Would you use s/=GF AC/ / or something?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found