Commit 55c09450 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

add COG NCBI links to gene list

parent a0cc0c0d
Pipeline #32866 passed with stages
in 3 minutes and 27 seconds
......@@ -221,7 +221,7 @@
Could not retrieve gene list from the server.
</v-layout>
</v-alert>
<!-- Table -->
<!-- Downloads -->
<v-card flat id="tablegenes" v-if="!loadTable">
<v-speed-dial
v-model="fab"
......@@ -286,6 +286,7 @@
<span>Download metadata (.csv)</span>
</v-tooltip>
</v-speed-dial>
<!-- Table -->
<v-list>
<v-data-table
:rows-per-page-items="rowsPerPageItems"
......@@ -312,15 +313,20 @@
<template v-for="(kegg_item, kegg_index) in props.item.keggs">
{{ kegg_item.kegg_id }}
<v-btn :href="kegg_item.kegg_url" icon flat small target="_blank" class="kegg--text mt-1 ml-0" v-if="kegg_item.kegg_id">
<v-icon small>
open_in_new
</v-icon>
<v-icon small>
open_in_new
</v-icon>
</v-btn>
</template>
</td>
<td class="text-xs">
<template v-for="(eggnog_item, eggnog_index) in props.item.eggnogs">
{{ eggnog_item.eggnog_id }}
<v-btn :href="eggnog_item.eggnog_url" icon flat small target="_blank" class="eggnog--text mt-1 ml-0" v-if="eggnog_item.eggnog_url">
<v-icon small>
open_in_new
</v-icon>
</v-btn>
</template>
</td>
<td class="text-xs">{{ props.item.source }}</td>
......
......@@ -240,9 +240,14 @@ export default {
kegg_id: fun.function_id
})
} else if (fun.source === 'eggnog') {
item.eggnogs.push({
var eggnogItem = {
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