Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
metagenedb
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
27e22312
Commit
27e22312
authored
5 years ago
by
Kenzo-Hugo Hillion
Browse files
Options
Downloads
Patches
Plain Diff
Dynamically generate link for taxonomy gene detail
parent
aaa45ed1
No related branches found
Branches containing commit
No related tags found
2 merge requests
!59
Prod
,
!35
Keep all hierarchy of a given taxonomy in the hierarchy field
Pipeline
#21436
passed with stages
in 2 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/components/TaxonomyCard.vue
+5
-9
5 additions, 9 deletions
frontend/src/components/TaxonomyCard.vue
with
5 additions
and
9 deletions
frontend/src/components/TaxonomyCard.vue
+
5
−
9
View file @
27e22312
...
...
@@ -70,50 +70,42 @@ export default {
},
})
.
then
((
response
)
=>
{
console
.
log
(
response
.
data
.
hierarchy
);
const
ncbi_tax_url
=
'
https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?name=
'
;
this
.
taxonomy_detail
=
[
{
title
:
'
Superkingdom
'
,
content
:
response
.
data
.
hierarchy
.
superkingdom
,
color
:
'
superkingdom
'
,
url
:
ncbi_tax_url
+
response
.
data
.
hierarchy
.
superkingdom
.
name
,
},
{
title
:
'
Kingdom
'
,
content
:
response
.
data
.
hierarchy
.
kingdom
,
color
:
'
kingdom
'
,
url
:
ncbi_tax_url
+
response
.
data
.
hierarchy
.
kingdom
.
name
,
},
{
title
:
'
Phylum
'
,
content
:
response
.
data
.
hierarchy
.
phylum
,
color
:
'
phylum
'
,
url
:
ncbi_tax_url
+
response
.
data
.
hierarchy
.
phylum
.
name
,
},
{
title
:
'
Class
'
,
content
:
response
.
data
.
hierarchy
.
class
,
color
:
'
class
'
,
url
:
ncbi_tax_url
+
response
.
data
.
hierarchy
.
class
.
name
,
},
{
title
:
'
Order
'
,
content
:
response
.
data
.
hierarchy
.
order
,
color
:
'
order
'
,
url
:
ncbi_tax_url
+
response
.
data
.
hierarchy
.
order
.
name
,
},
{
title
:
'
Family
'
,
content
:
response
.
data
.
hierarchy
.
family
,
color
:
'
family
'
,
url
:
ncbi_tax_url
+
response
.
data
.
hierarchy
.
family
.
name
,
},
{
title
:
'
Genus
'
,
content
:
response
.
data
.
hierarchy
.
genus
,
color
:
'
genus
'
,
url
:
ncbi_tax_url
+
response
.
data
.
hierarchy
.
genus
.
name
,
},
{
title
:
'
Species
'
,
...
...
@@ -121,7 +113,11 @@ export default {
color
:
'
species
'
,
},
];
console
.
log
(
this
.
taxonomy_detail
);
this
.
taxonomy_detail
.
forEach
(
function
(
item
,
index
)
{
if
(
item
.
content
)
{
item
.
url
=
ncbi_tax_url
+
item
.
content
.
name
;
}
});
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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