Commit 06e1f530 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

add COG link to NCBI to gene detail card

parent 55c09450
Pipeline #32868 passed with stages
in 3 minutes and 20 seconds
......@@ -63,11 +63,16 @@ export default {
},
buildEggNogDetails(response) {
this.eggnogVersion = response.data.version
var eggnogIdItem = {
title: 'ID',
content: response.data.function_id,
};
if (this.eggnogId.startsWith('COG')) {
eggnogIdItem.url = `https://ftp.ncbi.nih.gov/pub/COG/COG2014/static/byCOG/${eggnogIdItem.content}.html`;
eggnogIdItem.url_label = 'Open in NCBI'
}
this.eggnogDetails = [
{
title: 'ID',
content: response.data.function_id,
},
eggnogIdItem,
{
title: 'Name',
content: response.data.name,
......
......@@ -244,7 +244,6 @@ export default {
eggnog_id: fun.function_id
};
if (fun.function_id.startsWith("COG")) {
console.log("hahahaha");
eggnogItem.eggnog_url = `https://ftp.ncbi.nih.gov/pub/COG/COG2014/static/byCOG/${fun.function_id}.html`
}
item.eggnogs.push(eggnogItem)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment