@@ -238,17 +238,12 @@ function process($file){
238
238
239
239
240
240
function getAspect ($ anAspect ){
241
- if (count ($ anAspect )){
242
- if ($ anAspect == "F " ){
243
- return "function " ;
244
- }elseif ($ anAspect == "P " ){
245
- return "process " ;
246
- }elseif ($ anAspect == "C " ){
247
- return "component " ;
248
- }
249
-
250
- }else {
251
- return null ;
241
+ if ($ anAspect == "F " ){
242
+ return "function " ;
243
+ }elseif ($ anAspect == "P " ){
244
+ return "process " ;
245
+ }elseif ($ anAspect == "C " ){
246
+ return "component " ;
252
247
}
253
248
}
254
249
@@ -283,73 +278,72 @@ function getdbURI($db_id, $db_object_id){
283
278
* ["Experimental Evidence Code" => ["Inferred from Experiment", "0000006"]]
284
279
* See: http://www.geneontology.org/GO.evidence.shtml
285
280
**/
286
- function getEvidenceCodeLabelArr ($ aec ){
287
- if (count ($ aec )){
288
- //experimental code
289
- $ ec = array (
290
- "EXP " => array ("Inferred from Experiment " ,"0000006 " ),
291
- "IDA " => array ("Inferred from Direct Assay " ,"0000314 " ),
292
- "IPI " => array ("Inferred from Physical Interaction " ,"0000021 " ),
293
- "IMP " => array ("Inferred from Mutant Phenotype " , "0000315 " ),
294
- "IGI " => array ("Inferred from Genetic Interaction " ,"0000316 " ),
295
- "IEP " => array ("Inferred from Expression Pattern " , "0000008 " )
296
- );
297
-
298
- $ htp = array (
299
- "HTP " => array ("Inferred from High Throughput Experiment " ,"" ),
300
- "HDA " => array ("Inferred from High Throughput Direct Assay " ,"" ),
301
- "HMP " => array ("Inferred from Hight Throughput Mutant Phenotype " ,"" ),
302
- "HGI " => array ("Inferred from High Throughput Genetic Interaction " ,"" ),
303
- "HEP " => array ("Inferred from High Throughput Expression Pattern " ,"" )
281
+ function getEvidenceCodeLabelArr ($ aec )
282
+ {
283
+ //experimental code
284
+ $ ec = array (
285
+ "EXP " => array ("Inferred from Experiment " ,"0000006 " ),
286
+ "IDA " => array ("Inferred from Direct Assay " ,"0000314 " ),
287
+ "IPI " => array ("Inferred from Physical Interaction " ,"0000021 " ),
288
+ "IMP " => array ("Inferred from Mutant Phenotype " , "0000315 " ),
289
+ "IGI " => array ("Inferred from Genetic Interaction " ,"0000316 " ),
290
+ "IEP " => array ("Inferred from Expression Pattern " , "0000008 " )
304
291
);
305
292
306
- //computational analysis codes
307
- $ cac = array (
308
- "ISS " => array ("Inferred from Sequence or Structural Similarity " ,"0000027 " ),
309
- "ISO " => array ("Inferred from Sequence Orthology " , "0000201 " ),
310
- "ISA " => array ("Inferred from Sequence Alignment " , "0000200 " ),
311
- "ISM " => array ("Inferred from Sequence Model " , "0000202 " ),
312
- "IGC " => array ("Inferred from Genomic Context " , "0000317 " ),
313
- "IBA " => array ("Inferred from Biological aspect of Ancestor " ,"0000318 " ),
314
- "IBD " => array ("Inferred from Biological aspect of Desendant " , "0000319 " ),
315
- "IKR " => array ("Inferred from Key Residues " ,"0000320 " ),
316
- "IRD " => array ("Inferred from Rapid Divergence " ,"0000321 " ),
317
- "RCA " => array ("Inferred from Reviewed Computational Analysis " ,"0000245 " )
318
- );
319
-
320
- //author statement codes
321
- $ asc = array (
322
- "TAS " => array ("Traceable Author Statement " ,"0000304 " ),
323
- "NAS " => array ("Non-Traceable Author Statement " ,"0000303 " )
324
- );
325
- //curator statement codes
326
- $ csc = array (
327
- "IC " => array ("Inferred by Curator " ,"0000001 " ),
328
- "ND " => array ("No biological Data available " ,"0000035 " )
329
- );
330
- //automatically assigned codes
331
- $ aac = array (
332
- "IEA " =>array ("Inferred from Electronic Annotation " , "0000203 " )
293
+ $ htp = array (
294
+ "HTP " => array ("Inferred from High Throughput Experiment " ,"" ),
295
+ "HDA " => array ("Inferred from High Throughput Direct Assay " ,"" ),
296
+ "HMP " => array ("Inferred from Hight Throughput Mutant Phenotype " ,"" ),
297
+ "HGI " => array ("Inferred from High Throughput Genetic Interaction " ,"" ),
298
+ "HEP " => array ("Inferred from High Throughput Expression Pattern " ,"" )
299
+ );
300
+
301
+ //computational analysis codes
302
+ $ cac = array (
303
+ "ISS " => array ("Inferred from Sequence or Structural Similarity " ,"0000027 " ),
304
+ "ISO " => array ("Inferred from Sequence Orthology " , "0000201 " ),
305
+ "ISA " => array ("Inferred from Sequence Alignment " , "0000200 " ),
306
+ "ISM " => array ("Inferred from Sequence Model " , "0000202 " ),
307
+ "IGC " => array ("Inferred from Genomic Context " , "0000317 " ),
308
+ "IBA " => array ("Inferred from Biological aspect of Ancestor " ,"0000318 " ),
309
+ "IBD " => array ("Inferred from Biological aspect of Desendant " , "0000319 " ),
310
+ "IKR " => array ("Inferred from Key Residues " ,"0000320 " ),
311
+ "IRD " => array ("Inferred from Rapid Divergence " ,"0000321 " ),
312
+ "RCA " => array ("Inferred from Reviewed Computational Analysis " ,"0000245 " )
333
313
);
334
314
335
- if (array_key_exists ($ aec , $ ec )){
336
- return array ("experimental evidence code " =>$ ec [$ aec ]);
337
- }elseif (array_key_exists ($ aec , $ htp )){
338
- return array ("high throughput code " =>$ htp [$ aec ]);
339
- }elseif (array_key_exists ($ aec , $ cac )){
340
- return array ("computational analysis code " =>$ cac [$ aec ]);
341
- }elseif (array_key_exists ($ aec , $ asc )){
342
- return array ("author statement code " =>$ asc [$ aec ]);
343
- }elseif (array_key_exists ($ aec , $ csc )){
344
- return array ("curator statement code " =>$ csc [$ aec ]);
345
- }elseif (array_key_exists ($ aec , $ aac )){
346
- return array ("automatically assigned code " =>$ aac [$ aec ]);
347
- }else {
348
- return array ("unmapped evidence code " => $ aec );
349
- }
350
- } else {
351
- return null ;
315
+ //author statement codes
316
+ $ asc = array (
317
+ "TAS " => array ("Traceable Author Statement " ,"0000304 " ),
318
+ "NAS " => array ("Non-Traceable Author Statement " ,"0000303 " )
319
+ );
320
+ //curator statement codes
321
+ $ csc = array (
322
+ "IC " => array ("Inferred by Curator " ,"0000001 " ),
323
+ "ND " => array ("No biological Data available " ,"0000035 " )
324
+ );
325
+ //automatically assigned codes
326
+ $ aac = array (
327
+ "IEA " =>array ("Inferred from Electronic Annotation " , "0000203 " )
328
+ );
329
+
330
+ if (array_key_exists ($ aec , $ ec )){
331
+ return array ("experimental evidence code " =>$ ec [$ aec ]);
332
+ }elseif (array_key_exists ($ aec , $ htp )){
333
+ return array ("high throughput code " =>$ htp [$ aec ]);
334
+ }elseif (array_key_exists ($ aec , $ cac )){
335
+ return array ("computational analysis code " =>$ cac [$ aec ]);
336
+ }elseif (array_key_exists ($ aec , $ asc )){
337
+ return array ("author statement code " =>$ asc [$ aec ]);
338
+ }elseif (array_key_exists ($ aec , $ csc )){
339
+ return array ("curator statement code " =>$ csc [$ aec ]);
340
+ }elseif (array_key_exists ($ aec , $ aac )){
341
+ return array ("automatically assigned code " =>$ aac [$ aec ]);
342
+ }else {
343
+ return array ("unmapped evidence code " => $ aec );
352
344
}
345
+
346
+ return null ;
353
347
}
354
348
355
349
function parseDate ($ str ){
0 commit comments