| go-perl documentation | Contained in the go-perl distribution. |
GO::Handlers::go_xref -
use GO::Handlers::go_xref
| go-perl documentation | Contained in the go-perl distribution. |
# $Id: go_xref.pm,v 1.1 2004/01/27 23:52:24 cmungall Exp $ # # This GO module is maintained by Chris Mungall <cjm@fruitfly.org> # # see also - http://www.geneontology.org # - http://www.godatabase.org/dev # # You may distribute this module under the same terms as perl itself
# makes objects from parser events package GO::Handlers::go_xref; use base qw(GO::Handlers::base); use strict; sub e_term { my $self = shift; my $t = shift; my ($name, $id) = $t->lget(qw(name id)); foreach ($t->get_dbxref) { $self->printf("%s:%s > $name ; $acc\n", $_->sget_db, $_->sget_acc); } return; } 1;