ConnectorSet/EPconDBmousechip5.pm untested

filter: Statementstmt 0.0% 0 / 93 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 / 132 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::EPconDBmousechip5;
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
11 while (<$input_fh>) {
12 chomp;
13 $_ =~ s/[\r\n]//;
14 if (/^DoTS mouse build/) {next;}
15 if (/^feature_location/i) {next;}
16 #this is a tab delimited file
17 my @field_array = split /\t/;
18
19 my $Feature_Location = $field_array[0];
20 $self->put_dot('Feature_Location', $Feature_Location);
21
22 my $Kaestner_id = $field_array[1];
23 $self->put_dot('Kaestner_ID', $Kaestner_id);
24
25 my $Source = $field_array[2];
26 my $Source_id = $field_array[3];
27 my $datasource_and_id = $Source.':'.$Source_id;
28 $self->put_dot('Source_and_ID',$datasource_and_id);
29  
30 my $locuslink = $field_array[5];
31 if ($locuslink) {
32 if ($locuslink =~ /"/) {
33 my @ll = split (/,/, $locuslink);
34 foreach my $tmp (@ll) {
35 $tmp =~ s/"//;
36 $self->put_dot('LocusLink',$tmp);
37 }
38 }
39 else{
40 $self->put_dot('LocusLink',$locuslink);
41 }
42 }
43  
44 my $locuslinksymbol = $field_array[6];
45 if ($locuslinksymbol) {
46 if ($locuslinksymbol =~ /"/) {
47 my @lls = split (/,/, $locuslinksymbol);
48 foreach my $tmp (@lls) {
49 $tmp =~ s/"//;
50 $self->put_dot('LocuslinkSymbol',$tmp);
51 }
52 }
53 else{
54 $self->put_dot('LocuslinkSymbol',$locuslinksymbol);
55 }
56 }
57  
58 my $locusgenename = $field_array[6];
59 if ($locusgenename) {
60 if ($locusgenename =~ /"/) {
61 my @lgn = split (/,/, $locusgenename);
62 foreach my $tmp (@lgn) {
63 $tmp =~ s/"//;
64 $self->put_dot('LocusGeneName',$tmp);
65 }
66 }
67 else{
68 $self->put_dot('LocusGeneName',$locusgenename);
69 }
70 }
71  
72 my $MGI_id = $field_array[9];
73 if ($MGI_id) {
74 if ($MGI_id =~ /"/) {
75 my @mgi_id = split(/,/, $MGI_id);
76 foreach my $tmp (@mgi_id) {
77 $tmp =~ s/"//;
78 $self->put_dot('MGI_ID', $tmp);
79 }
80 }
81 else {
82 $self->put_dot('MGI_ID', $MGI_id);
83 }
84 }
85
86 # my $MGI_symbol=$field_array[8];
87 # if ($MGI_symbol) {
88 # if ($MGI_symbol =~ /"/) {
89 # my @mgi_sym = split(/,/, $MGI_symbol);
90 # foreach my $tmp (@mgi_sym) {
91 # $tmp =~ s/"//;
92 # $self->put_dot('MGI_Symbol', $tmp);
93 # }
94 # }
95 # else {
96 # $self->put_dot('MGI_Symbol', $MGI_symbol);
97 # }
98 # }
99
100
101 # my $MGI_Synonyms_string = $field_array[9];
102 # if ($MGI_Synonyms_string) {
103 # $MGI_Synonyms_string =~ s/"//;
104 # $MGI_Synonyms_string =~ s/"//;
105 # my @temparray = split (/,/, $MGI_Synonyms_string);
106 # foreach my $temp (@temparray) {
107 # $self->put_dot('MGI_SYNONYM', $temp);
108 # }
109 # }
110  
111 # my $DoTS_Genesymbol_Desc = $field_array[10];
112 # if ($DoTS_Genesymbol_Desc) {
113 # $self->put_dot('DoTS_GeneSymbol_and_Desc',$DoTS_Genesymbol_Desc);
114 # }
115
116 # my $DoTS_Gene_Synonyms = $field_array[11];
117 # if ($DoTS_Gene_Synonyms) {
118 # if ($DoTS_Gene_Synonyms =~ /"/) {
119 # my @dgs = split (/,/, $DoTS_Gene_Synonyms);
120 # foreach my $tmp (@dgs) {
121 # $tmp =~ s/"//;
122 # $self->put_dot('DoTS_Gene_Synonyms',$tmp);
123 # }
124 # }
125 # else{
126 # $self->put_dot('DoTS_Gene_Synonyms',$DoTS_Gene_Synonyms);
127 # }
128 # }
129  
130 my $PCR_Failure_Flag = $field_array[15];
131 if ($PCR_Failure_Flag) {
132 $self->put_dot('PCR_Failure_Flag',$PCR_Failure_Flag);
133 }
134
135 my $Name = $field_array[4];
136 if ($Name) {
137 $self->put_dot('Name', $Name);
138 }
139  
140  
141 my $DoTS_id = $field_array[19];
142 if ($DoTS_id) {
143 my @did = split (';', $DoTS_id);
144 foreach my $tmp (@did) {
145 $tmp =~ s/"//;
146 $self->put_dot('DoTS_ID',$tmp);
147 }
148 }
149
150
151 # my $RNA_DESC = $field_array[15];
152 # if ($RNA_DESC) {
153 # $self->put_dot('RNA_DESC',$RNA_DESC);
154 # }
155
156 # my $Pred_GO_func = $field_array[16];
157 # if ($Pred_GO_func) {
158 # $self->put_dot('Predicted_GO_func',$Pred_GO_func);
159 # }
160
161 # my $Agencourt_seq_avail = $field_array[17];
162 # if ($Agencourt_seq_avail) {
163 # $self->put_dot('Agencourt_seq_avail',$Agencourt_seq_avail);
164 # }
165  
166 my $seq_verified = $field_array[16];
167 if ($seq_verified) {
168 $self->put_dot('Seq_verified',$seq_verified);
169 }
170 ###17, 18, 11
171 my $genbank = $field_array[11];
172 if ($genbank) {
173 my @genbankarray = split ('\s+', $genbank);
174 push @genbankarray, $field_array[17];
175 push @genbankarray, $field_array[18];
176 foreach my $tmp (@genbankarray) {
177 $tmp =~ s/"//;
178 $self->put_dot('GenBank_Acc', $tmp);}
179 }
180  
181 # my $WashU_name = $field_array[20];
182 # if ($WashU_name) {
183 # $self->put_dot('WashU_Name', $WashU_name);
184 # }
185  
186 # my $Agencourt_IMAGE_ID = $field_array[21];
187 # if ($Agencourt_IMAGE_ID) {
188 # $self->put_dot('Agencourt_IMAGE_ID', $Agencourt_IMAGE_ID);
189 # }
190
191 # my $old_IMAGE_ID = $field_array[22];
192 # if ($old_IMAGE_ID) {
193 # $self->put_dot('old_IMAGE_ID', $old_IMAGE_ID);
194 # }
195
196 my $RefSeq = $field_array[10];
197 if ($RefSeq) {
198 if ($RefSeq =~ /"/) {
199 my @refseq = split(/,/, $RefSeq);
200 foreach my $tmp (@refseq) {
201 $tmp =~ s/"//;
202 $self->put_dot('RefSeq', $tmp);
203 }
204 }
205 else {
206 $self->put_dot('RefSeq', $RefSeq);
207 }
208 }
209  
210  
211 # my $Plate_Name = $field_array[30];
212 # if ($Plate_Name) {
213 # $self->put_dot('Plate_Name', $Plate_Name);
214 # }
215
216 # my $well_location = $field_array[31];
217 # if ($well_location) {
218 # $self->put_dot('Well_Location', $well_location);
219 # }
220  
221  
222 return 1;
223 } #end of while
224 return undef;
225 } #end of sub
226  
227 1;