ConnectorSet/gse_series.pm untested

filter: Statementstmt 0.0% 0 / 48 Branchbran 0.0% 0 / 40 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 93 CC 21 SCAR 60.0
CC
21
Cov
0%
parse_entry
462.0
BEGIN
2.0
BEGIN
2.0
CRAP 404.5
1 package Bio::ConnectDots::ConnectorSet::gse_series;
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 my $flag = 0;
12 while (<$input_fh>) {
13 chomp;
14 s/[\r\n]//;
15 if (/^\^series\s*=\s*(GSE\d+)/) {
16 my $gse = $1;
17 $flag = 1;
18 $self->put_dot("SeriesID","$gse") if $gse;
19 }
20 if (/^\!Series_status\s*=\s*(.*)/) {
21 my $status = $1;
22 $self->put_dot("Status","$status") if $status;
23 }
24 if (/^\!Series_title\s*=\s*(.*)/) {
25 my $title = $1;
26 $self->put_dot("Title","$title") if $title;
27 }
28 if (/^\!Series_type\s*=\s*(.*)/) {
29 my $type = $1;
30 $self->put_dot("Type","$type") if $type;
31 }
32 if (/^\!Series_pubmed_id\s*=\s*(\d+)/) {
33 my $pubmed = $1;
34 $self->put_dot("PubMedID","$pubmed")if $pubmed;
35 }
36 if (/^\!Series_web_link\s*=\s*(.*)/) {
37 my $link = $1;
38 $self->put_dot("Link","$link") if $link;
39 }
40 if (/^\!Series_description\s*=\s*(.*)/) {
41 my $desc = $1;
42 $self->put_dot("Description","$desc") if $desc;
43 }
44 if (/^\!Series_keyword\s*=\s*(.*)/) {
45 my $key = $1;
46 $self->put_dot("Keyword","$key") if $key;
47 }
48 if (/^\!Series_sample_id\s*=\s*(GSM\d+)/) {
49 my $samp = $1;
50 $self->put_dot("SampleID","$samp") if $samp;
51 }
52 if (/^\^platform\s*=\s*(GPL\d+)/) {
53 return $self->have_dots if $flag;
54 $flag = 0;
55 }
56 }
57 return undef;
58 }