ConnectorSet/gse_platform.pm untested

filter: Statementstmt 0.0% 0 / 39 Branchbran 0.0% 0 / 30 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 74 CC 16 SCAR 54.4
CC
16
Cov
0%
parse_entry
272.0
BEGIN
2.0
BEGIN
2.0
CRAP 229.4
1 package Bio::ConnectDots::ConnectorSet::gse_platform;
2 use strict;
3 use vars qw(@ISA);
4 use Bio::ConnectDots::ConnectorSet;
5 @ISA = qw(Bio::ConnectDots::ConnectorSet);
6
7
8 sub parse_entry {
9 my ($self) = @_;
10 my $input_fh=$self->input_fh;
11 while (<$input_fh>) {
12 chomp;
13 s/[\r\n]//;
14 if (/\^platform\s*=\s*(GPL\d+)/) {
15 my $plat = $1;
16 $self->put_dot("PlatformID","$plat") if $plat;
17 }
18 if (/\!Platform_status\s*=\s*(.*)/) {
19 my $status = $1;
20 $self->put_dot("Status","$status") if $status;
21 }
22 if (/\!Platform_title\s*=\s*(.*)/) {
23 my $title = $1;
24 $self->put_dot("Title","$title") if $title;
25 }
26 if (/\!Platform_type\s*=\s*(.*)/) {
27 my $type = $1;
28 $self->put_dot("Type","$type") if $type;
29 }
30 if (/\!Platform_description\s*=\s*(.*)/) {
31 my $desc = $1;
32 $self->put_dot("Description","$desc") if $desc;
33 }
34 if (/\!Platform_keyword\s*=\s*(.*)/) {
35 my $key = $1;
36 $self->put_dot("Keyword","$key") if $key;
37 }
38 if (/\!Platform_organism\s*=\s*(.*)/) {
39 my $org = $1;
40 $self->put_dot("Organism","$org") if $org;
41 }
42 if (/\!Platform_geo_accession\s*=\s*(GPL\d+)/) {
43 return $self->have_dots;
44 }
45 }
46 close GSE;
47 }