Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to get to grips with bioperl and have some really stupid questions.
Basically all variables seem to be a reference to something rather than holding the actual value themselves, which is causing me problems when it comes to printing them out to see what they hold.
Here is my code:
How can I print the contents of @f ?my $seqio = $gb->get_Stream_by_id(['13474692']); + + while( my $seq = $seqio->next_seq ) { print "seq is ", $seq->display_id, "\n"; my @f=$seq->get_all_SeqFeatures; #This gives you the annotation +of the retrieved sequence object
Nothing seems to be working past here.
foreach my $feat (@f) { my $ann=$feat->annotation; next unless ($ann->get_Annotations('coded_by')); my @coded=$ann->get_Annotations('coded_by'); foreach my $location (@coded) { print $location->value, " is the location that codes this pro +tein\n"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bioperl + perl modules
by srdst13 (Pilgrim) on Jun 27, 2005 at 10:21 UTC | |
|
Re: Bioperl + perl modules
by Joost (Canon) on Jun 27, 2005 at 09:40 UTC | |
by Anonymous Monk on Jun 27, 2005 at 09:59 UTC | |
by Joost (Canon) on Jun 27, 2005 at 10:35 UTC | |
|
Re: Bioperl + perl modules
by stajich (Chaplain) on Jul 03, 2005 at 20:36 UTC |