Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
metagenedb
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metagenomics
metagenedb
Commits
e0f295f7
Commit
e0f295f7
authored
4 years ago
by
Kenzo-Hugo Hillion
♻️
Browse files
Options
Downloads
Patches
Plain Diff
give two links for NCBI taxonomy in gene detail
parent
3e4aa2c6
No related branches found
No related tags found
1 merge request
!67
Use new fields for KEGG details
Pipeline
#35732
passed
4 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/components/taxonomycard/taxonomycard.html
+34
-7
34 additions, 7 deletions
frontend/src/components/taxonomycard/taxonomycard.html
frontend/src/components/taxonomycard/taxonomycard.js
+3
-2
3 additions, 2 deletions
frontend/src/components/taxonomycard/taxonomycard.js
with
37 additions
and
9 deletions
frontend/src/components/taxonomycard/taxonomycard.html
+
34
−
7
View file @
e0f295f7
...
...
@@ -28,14 +28,41 @@
<v-list-tile-sub-title
v-html=
"item.content.name"
></v-list-tile-sub-title>
</v-list-tile-content>
<v-list-tile-action>
<v-tooltip
top
>
<template
v-slot:activator=
"{ on }"
>
<v-btn
:href=
"item.url"
flat
icon
class=
"primary--text"
target=
"_blank"
v-on=
"on"
>
<v-icon>
open_in_new
</v-icon>
</v-btn>
<v-speed-dial
direction=
"left"
transition=
"scale-transition"
>
<template
v-slot:activator
>
<v-tooltip
top
>
<template
v-slot:activator=
"{ on }"
>
<v-btn
icon
flat
v-on=
"on"
>
<v-icon>
open_in_new
</v-icon>
</v-btn>
</template>
<span>
Visit NCBI Taxonomy
</span>
</v-tooltip>
</template>
<span>
Visit NCBI taxonomy
</span>
</v-tooltip>
<v-tooltip
top
>
<template
v-slot:activator=
"{ on }"
>
<v-btn
:href=
"item.url_info"
icon
class=
"mr-3"
target=
"_blank"
v-on=
"on"
>
<v-icon>
fas fa-info
</v-icon>
</v-btn>
</template>
<span>
Info
</span>
</v-tooltip>
<v-tooltip
top
>
<template
v-slot:activator=
"{ on }"
>
<v-btn
:href=
"item.url_tree"
icon
class=
"mr-3"
target=
"_blank"
v-on=
"on"
>
<v-icon>
fa-sitemap
</v-icon>
</v-btn>
</template>
<span>
Tree
</span>
</v-tooltip>
</v-speed-dial>
</v-list-tile-action>
</v-list-tile>
</template>
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/taxonomycard/taxonomycard.js
+
3
−
2
View file @
e0f295f7
...
...
@@ -22,7 +22,7 @@ export default {
},
})
.
then
((
response
)
=>
{
const
ncbi_tax_url
=
'
https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?
id=
'
;
const
ncbi_tax_url
=
'
https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?
'
;
this
.
taxonomyDetail
=
[
{
title
:
'
Superkingdom
'
,
...
...
@@ -67,7 +67,8 @@ export default {
];
this
.
taxonomyDetail
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
content
)
{
item
.
url
=
ncbi_tax_url
+
item
.
content
.
tax_id
;
item
.
url_info
=
ncbi_tax_url
+
"
mode=info&id=
"
+
item
.
content
.
tax_id
;
item
.
url_tree
=
ncbi_tax_url
+
"
mode=tree&id=
"
+
item
.
content
.
tax_id
;
}
});
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment