I am a perl beginner and I have to model some quite complicated domain knowledge and with my limited perl knowledge the best I can come up with is lots of nested hashes. Here it is:
A snp is something in biology which can be associated with a specific set of genes. Each gene in turn can be associated with a specific set of transcripts. Each transcript also has a set of associated properties that we care about in relation to the original snp. This was my data model
i would like to compare the entire 'data tree' generated from one source of data one source to another 'data tree' from what should be equivalent source of data to make sure they are the same. So any solution should aid comparision. I think this nested hash structure allows me to compare, say, the genes of the same snp as I can compare the keys of the corresponding gene hash ref. Any comments welecomedA 'snp hash'. The key is the snp id, the value is a ref to a 'gene has +h'. Each key in this hash is a gene id and the value is a ref to a transcr +ipt hash. Each key is a transcript id and the return value is a hash ref to a pr +operties hash. The hash has one key per property of the transcript
In reply to can i avoid all these nested hashes by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |