lomSpace has asked for the wisdom of the Perl Monks concerning the following question:
There are several features: CDS,exons, genes, mRNAs, misc_RNAs# sorts each feature by its primary tag into a hash # of array references named %sorted_features my %sorted_features; for my $f (@features) { #get cds, primer_bind, and genes features only my $tag = $f->primary_tag; # create a hash of $f keys and $tag values push @{$sorted_features{$tag}},$f; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: processing data from an array reference
by graff (Chancellor) on Jul 23, 2009 at 05:28 UTC | |
|
Re: processing data from an array reference
by Anonymous Monk on Jul 23, 2009 at 05:05 UTC |