in reply to Array of arrays used within object
Is each sequence an object? If so, make addregion() a method, and have it store \@nreg on the object as well.
Otherwise, what about using something like this (pseudocode)...
my %nregs; foreach <$sequences> { local @nreg; do_addregion_for_all_regions(); $nregs{getseqname($_)} = \@nreg; }
This way, you have a set of @nreg, one for each sequence, keyed on the sequence name.
If I am way off base here, no problem. It has been a while since I have done anything biology.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array of arrays used within object
by knirirr (Scribe) on Aug 07, 2003 at 08:43 UTC | |
by esh (Pilgrim) on Aug 08, 2003 at 01:26 UTC | |
by knirirr (Scribe) on Aug 08, 2003 at 09:29 UTC | |
by knirirr (Scribe) on Aug 07, 2003 at 15:44 UTC | |
by esh (Pilgrim) on Aug 08, 2003 at 01:36 UTC |