File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -672,6 +672,7 @@ function parseEntry($lfile)
672
672
}
673
673
if (in_array ($ k , array ("INTERACTION " ,"METABOLISM " ,"TARGET " ))) {
674
674
// dopamine D2-receptor antagonist [HSA:1813] [KO:K04145]
675
+ // K04348 K06268 K17610 K17611
675
676
$ id = parent ::getRes ().md5 ($ uri .$ v );
676
677
$ type = ucfirst (strtolower ($ k ));
677
678
if (in_array ($ k , array ("INTERACTION " ,"METABOLISM " ))) {
@@ -694,10 +695,14 @@ function parseEntry($lfile)
694
695
if (isset ($ m [1 ]) and !empty ($ m [1 ])) {
695
696
foreach ($ m [1 ] AS $ item ) {
696
697
$ a = explode (': ' ,$ item ); // get the namespace
698
+ if (!isset ($ a [1 ])) {continue ;} // skip this.
697
699
$ b = explode (' ' ,$ a [1 ]);
698
700
foreach ($ b AS $ c ) {
699
- if (!strstr ($ item ,"KO " )) $ i = "kegg: " .$ a [0 ].'_ ' .$ c ;
700
- else $ i = "kegg: " .$ c ;
701
+ if (!strstr ($ item ,"KO " )) {
702
+ $ i = "kegg: " .$ a [0 ].'_ ' .$ c ;
703
+ } else {
704
+ $ i = "kegg: " .$ c ;
705
+ }
701
706
parent ::addRDF (
702
707
parent ::triplify ($ id ,parent ::getVoc ()."link " ,$ i )
703
708
);
@@ -842,4 +847,4 @@ function parseKGML($lfile)
842
847
}
843
848
844
849
845
-
850
+
You can’t perform that action at this time.
0 commit comments