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
06e1f530
Commit
06e1f530
authored
Jun 24, 2020
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/eggnogcard/eggnogcard.js
View file @
06e1f530
...
...
@@ -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
,
...
...
frontend/src/views/genes/genes.js
View file @
06e1f530
...
...
@@ -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
)
...
...
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