| 1 | package Bio::ConnectDots::ConnectorSet::kegg_title; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use vars qw(@ISA); | ||
| 5 | use Bio::ConnectDots::ConnectorSet; | ||
| 6 | @ISA = qw(Bio::ConnectDots::ConnectorSet); | ||
| 7 | |||
| 8 | sub parse_entry { | ||
| 9 | my ($self) = @_; | ||
| 10 | my $input_fh = $self->input_fh; | ||
| 11 | |||
| 12 | while (<$input_fh>) { | ||
| 13 | chomp; | ||
| 14 | my ($id, $name) = split('\t', $line); | ||
| 15 | $name =~ s/\'/\'\'/g; | ||
| 16 | $self->put_dot('Kegg_Pathway_ID',$id); | ||
| 17 | $self->put_dot('Kegg_Pathway_Name',$name); | ||
| 18 | return 1; | ||
| 19 | } #end of while | ||
| 20 | return undef; | ||
| 21 | } | ||
| 22 | |||
| 23 | 1; |