File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -112,16 +112,16 @@ function cogEncode(v: string, url = false) {
112
112
return `COG.PATHWAY:${ v } ` ;
113
113
}
114
114
// Or figure out if it is a term, pathway, or function
115
- const urlBase = 'https://www.ncbi.nlm.nih.gov/research /cog' ;
115
+ const urlBase = 'https://bioregistry.io /cog' ;
116
116
const id = v . split ( ':' ) [ 1 ] ;
117
117
if ( v . length === 1 || v . startsWith ( 'COG.FUNCTION:' ) ) {
118
- return `${ urlBase } /cogcategory /${ id } ` ;
118
+ return `${ urlBase } .category: /${ id } ` ;
119
119
}
120
120
if ( v . startsWith ( 'COG.PATHWAY' ) ) {
121
- return `${ urlBase } / pathway/${ id } ` ;
121
+ return `${ urlBase } . pathway: /${ id } ` ;
122
122
}
123
123
if ( v . startsWith ( 'COG:COG' ) ) {
124
- return `${ urlBase } /cog /${ id } ` ;
124
+ return `${ urlBase } : /${ id } ` ;
125
125
}
126
126
return v ;
127
127
}
You can’t perform that action at this time.
0 commit comments