| 1 | package Bio::ConnectDots::ConnectorSet::homologene; | ||
| 2 | use strict; | ||
| 3 | use vars qw(@ISA); | ||
| 4 | use Bio::ConnectDots::ConnectorSet; | ||
| 5 | @ISA = qw(Bio::ConnectDots::ConnectorSet); | ||
| 6 | |||
| 7 | sub parse_entry { | ||
| 8 | my ($self) = @_; | ||
| 9 | my $input_fh=$self->input_fh; | ||
| 10 | #the file start with line with index number 1 | ||
| 11 | while (<$input_fh>) { | ||
| 12 | chomp; | ||
| 13 | if (/^>>/) { | ||
| 14 | next unless $self->have_dots; | ||
| 15 | return 1; | ||
| 16 | } | ||
| 17 | |||
| 18 | my @field = split(/\t/, $_); | ||
| 19 | #field[1] is the organism specis, $field[2] is the locuslink id | ||
| 20 | $self->put_dot("$field[1]","$field[2]"); | ||
| 21 | |||
| 22 | } #end of while | ||
| 23 | |||
| 24 | return undef; | ||
| 25 | } #end of sub | ||
| 26 | |||
| 27 | 1; |