ConnectorSet/homologene.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 29 CC 3 SCAR 19.5
CC
3
Cov
0%
parse_entry
12.0
BEGIN
2.0
BEGIN
2.0
CRAP 7.0
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;