Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to add missing part in a Hash of Array

by BillKSmith (Chaplain)
on May 01, 2014 at 16:15 UTC ( #1084647=note: print w/ replies, xml ) Need Help??


in reply to How to add missing part in a Hash of Array

I suspect that we have all misunderstood your data structure. The only code that you provided does indeed reference a "hash of arrays". It associates an array consisting of one position and the name of one amino acid with each protein. (All the responses so far assume that you hve an array of these arrays for each protein). It would be easier to work with a hash of hashes which associates an amino acid with its protein and its position.

Bill


Comment on Re: How to add missing part in a Hash of Array
Re^2: How to add missing part in a Hash of Array
by Anonymous Monk on May 01, 2014 at 18:27 UTC
    Indeed, I fixed it with Hash of Hashes!
    Thank you all for your help guys!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-09-20 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (160 votes), past polls