ConnectorSet/GOA.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran 0.0% 0 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 54 CC 12 SCAR 48.3
CC
12
Cov
0%
parse_entry
156.0
BEGIN
2.0
BEGIN
2.0
CRAP 125.2
1 package Bio::ConnectDots::ConnectorSet::GOA;
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 $_ = <$input_fh>;
12 return undef unless $_;
13 chomp;
14 my @COLS = split /\t/;
15 $self->put_dot('Database', $COLS[0]) if $COLS[0];
16 $self->put_dot('DB_Object_ID', $COLS[1]) if $COLS[1];
17 $self->put_dot('DB_Object_Symbol', $COLS[2]) if $COLS[2];
18 $self->put_dot('GO_id', $COLS[4]) if $COLS[4];
19 $self->put_dot('DB_Reference', $COLS[5]) if $COLS[5];
20 $self->put_dot('Evidence', $COLS[6]) if $COLS[6];
21 $self->put_dot('Aspect', $COLS[8]) if $COLS[8];
22 $self->put_dot('DB_Object_Name', $COLS[9]) if $COLS[9];
23 $self->put_dot('IPI_id', $COLS[10]) if $COLS[10];
24 $self->put_dot('Taxon_ID', $COLS[12]) if $COLS[12];
25 return 1;
26 }
27  
28 1;