We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ffdc51 + 089f011 commit 8a8456cCopy full SHA for 8a8456c
web/src/encoding.ts
@@ -112,16 +112,16 @@ function cogEncode(v: string, url = false) {
112
return `COG.PATHWAY:${v}`;
113
}
114
// Or figure out if it is a term, pathway, or function
115
- const urlBase = 'https://www.ncbi.nlm.nih.gov/research/cog';
+ const urlBase = 'https://bioregistry.io/cog';
116
const id = v.split(':')[1];
117
if (v.length === 1 || v.startsWith('COG.FUNCTION:')) {
118
- return `${urlBase}/cogcategory/${id}`;
+ return `${urlBase}.category:/${id}`;
119
120
if (v.startsWith('COG.PATHWAY')) {
121
- return `${urlBase}/pathway/${id}`;
+ return `${urlBase}.pathway:/${id}`;
122
123
if (v.startsWith('COG:COG')) {
124
- return `${urlBase}/cog/${id}`;
+ return `${urlBase}:/${id}`;
125
126
return v;
127
0 commit comments