File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,19 +57,19 @@ const KeggPrefix: Record<string, PrefixInfo> = {
57
57
pattern : / ^ ( ( k : ? ) | ( k e g g \. o r t h o l o g y : k ) ) (? = \d { 5 } ) / i,
58
58
short : ( ) => 'k' ,
59
59
long : ( ) => 'KEGG.ORTHOLOGY:K' ,
60
- urlBase : 'https://www.genome.jp/entry /' ,
60
+ urlBase : 'https://bioregistry.io/kegg.orthology: /' ,
61
61
} ,
62
62
PATHWAY : {
63
63
pattern : pathwayRegex ,
64
64
short : pathwayPrefixShort ,
65
65
long : pathwayPrefixLong ,
66
- urlBase : 'https://www.genome.jp /kegg-bin/show_pathway? ' ,
66
+ urlBase : 'https://bioregistry.io /kegg.pathway:/ ' ,
67
67
} ,
68
68
MODULE : {
69
69
pattern : / ^ ( ( m : ? ) | ( k e g g .m o d u l e : m ) ) (? = \d { 5 } ) / i,
70
70
short : ( ) => 'M' ,
71
71
long : ( ) => 'KEGG.MODULE:M' ,
72
- urlBase : 'https://www. kegg.jp/entry /' ,
72
+ urlBase : 'https://bioregistry.io/ kegg.module: /' ,
73
73
} ,
74
74
} ;
75
75
@@ -87,7 +87,7 @@ function keggEncode(v: string, url = false) {
87
87
const transformed = v . replace ( pattern , replacement ) ;
88
88
if ( transformed !== v ) {
89
89
if ( url ) {
90
- return urlBase + transformed ;
90
+ return urlBase + transformed . toUpperCase ( ) ;
91
91
}
92
92
return transformed ;
93
93
}
You can’t perform that action at this time.
0 commit comments