ConnectorSet/HG_U133B_annot_csv.pm untested

filter: Statementstmt 0.0% 0 / 74 Branchbran 0.0% 0 / 34 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 113 CC 18 SCAR 56.8
CC
18
Cov
0%
parse_entry
342.0
BEGIN
2.0
BEGIN
2.0
CRAP 293.4
1 package Bio::ConnectDots::ConnectorSet::HG_U133B_annot_csv;
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 while (<$input_fh>) {
11 chomp;
12 if (/^"Probe Set ID"/) {
13 next;
14 }
15
16 my @field_array = split /","/;
17
18 my $probeSetID = $field_array[0];
19 $probeSetID =~ s/\"//;
20 if ($probeSetID ne '---') {
21 $self->put_dot('ProbeSet_ID', $probeSetID);
22 }
23
24 my $chip = $field_array[1];
25 if ($chip ne '---') {
26 $self->put_dot('Chip', $chip);
27 }
28  
29 my $organism = $field_array[2];
30 if ($organism ne '---') {
31 $self->put_dot('Organism', $organism);
32 }
33  
34 my $sequenceType = $field_array[4];
35 if ($sequenceType ne '---') {
36 $self->put_dot('Sequence_Type', $sequenceType);
37 }
38  
39 my $sequenceSource = $field_array[5];
40 if ($sequenceSource ne '---') {
41 $self->put_dot('Sequence_Source', $sequenceSource);
42 }
43  
44 my $SDF = $field_array[6];
45 if ($SDF ne '---') {
46 $SDF =~ s/\.\d+//;
47 $self->put_dot('SequenceDerivedFrom', $SDF);
48 }
49
50 my $geneSymbol=$field_array[12];
51 if ($geneSymbol ne '---') {
52 $self->put_dot('GeneSymbol', $geneSymbol);
53 }
54
55 my $location=$field_array[13];
56 if ($location ne '---') {
57 $self->put_dot('Location', $location);
58 }
59
60 my $unigene = $field_array[14];
61 $unigene =~ s/\s*\/\/\s*\S*\s*\S*\s*\S*//;
62 if ($unigene ne '---'){
63 $self->put_dot('UniGene', $unigene);
64 }
65  
66 my $locuslink = $field_array[15];
67 if ($locuslink ne '---') {
68 $self->put_dot('LocusLink', $locuslink);}
69  
70 my $swissProt = $field_array[16];
71 if ($swissProt ne '---') {
72 if ($swissProt =~ /\/\/\//) {
73 my @sp = split(/\/\/\//, $swissProt);
74 foreach my $tmp (@sp) {
75 $tmp =~ s/\s*//;
76 $self->put_dot('SwissProt', $tmp);
77 }
78 }
79 else {
80 $self->put_dot('SwissProt', $swissProt);
81 }
82 }
83  
84 my $ECnumber = $field_array[17];
85 if ($ECnumber ne '---') {
86 $self->put_dot('ECnumber', $ECnumber);}
87
88 my $omim = $field_array[18];
89 if ($omim ne '---') {
90 $self->put_dot('OMIM', $omim);}
91
92 my $ensemblID = $field_array[19];
93 if ($ensemblID ne '---'){
94 if ($ensemblID =~ /\/\/\//) {
95 my @ensemblid = split (/\/\/\//, $ensemblID);
96 foreach my $tmp (@ensemblid) {
97 $tmp =~ s/\s*//;
98 $self->put_dot('Ensembl', $tmp);
99 }
100 }
101 else {
102 $self->put_dot('Ensembl', $ensemblID);
103 }
104 }
105  
106
107 return $self->have_dots;
108 } #end of while
109 return undef;
110 }#end of sub
111  
112 1;