Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
55c09450
Commit
55c09450
authored
Jun 24, 2020
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/genes/genes.html
View file @
55c09450
...
...
@@ -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>
...
...
frontend/src/views/genes/genes.js
View file @
55c09450
...
...
@@ -240,9 +240,14 @@ export default {
kegg_id
:
fun
.
function_id
})
}
else
if
(
fun
.
source
===
'
eggnog
'
)
{
item
.
eggnog
s
.
push
(
{
var
eggnog
Item
=
{
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
)
}
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment