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
9a5525bd
Commit
9a5525bd
authored
4 years ago
by
Kenzo-Hugo Hillion
Browse files
Options
Downloads
Patches
Plain Diff
add filter for gene with functions only
parent
c22590cc
No related branches found
No related tags found
1 merge request
!69
Resolve "Allow filtering on genes with KEGG or EggNOG annotations"
Pipeline
#51859
failed
4 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/views/genes/genes.html
+9
-1
9 additions, 1 deletion
frontend/src/views/genes/genes.html
frontend/src/views/genes/genes.js
+5
-0
5 additions, 0 deletions
frontend/src/views/genes/genes.js
with
14 additions
and
1 deletion
frontend/src/views/genes/genes.html
+
9
−
1
View file @
9a5525bd
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<v-spacer/>
<v-spacer/>
{{ item.text }}
{{ item.text }}
<v-spacer/>
<v-spacer/>
<v-flex
md8
>
<v-flex
md8
>
<v-progress-linear
<v-progress-linear
v-if=
"item.progressBar"
v-if=
"item.progressBar"
indeterminate
indeterminate
...
@@ -181,6 +181,14 @@
...
@@ -181,6 +181,14 @@
grid-list-md
grid-list-md
>
>
<v-layout>
<v-layout>
<v-flex
sm12
md8
lg6
d-flex
>
<v-switch
v-model=
"filterWithFunction"
label=
"Functional annotation"
color=
"secondary lighten-1"
></v-switch>
</v-flex>
<!-- Source choice -->
<!-- Source choice -->
<v-flex
sm12
md8
lg6
d-flex
>
<v-flex
sm12
md8
lg6
d-flex
>
<v-text-field
<v-text-field
...
...
This diff is collapsed.
Click to expand it.
frontend/src/views/genes/genes.js
+
5
−
0
View file @
9a5525bd
...
@@ -26,6 +26,7 @@ export default {
...
@@ -26,6 +26,7 @@ export default {
taxItems
:
[],
taxItems
:
[],
taxChoice
:
null
,
taxChoice
:
null
,
// - Function
// - Function
filterWithFunction
:
null
,
functionID
:
null
,
functionID
:
null
,
// Information about request
// Information about request
loadTable
:
true
,
loadTable
:
true
,
...
@@ -89,6 +90,9 @@ export default {
...
@@ -89,6 +90,9 @@ export default {
if
(
this
.
functionID
){
if
(
this
.
functionID
){
qParams
.
function
=
this
.
functionID
;
qParams
.
function
=
this
.
functionID
;
}
}
else
if
(
this
.
filterWithFunction
){
qParams
.
has_functions
=
this
.
filterWithFunction
;
};
if
(
this
.
taxChoice
)
{
if
(
this
.
taxChoice
)
{
qParams
.
tax_id
=
this
.
taxItems
[
this
.
taxChoice
];
qParams
.
tax_id
=
this
.
taxItems
[
this
.
taxChoice
];
}
}
...
@@ -336,6 +340,7 @@ export default {
...
@@ -336,6 +340,7 @@ export default {
},
},
emptyFunctionFilter
()
{
emptyFunctionFilter
()
{
this
.
functionID
=
null
;
this
.
functionID
=
null
;
this
.
filterWithFunction
=
null
;
},
},
emptyFilters
()
{
emptyFilters
()
{
this
.
emptyGeneInformationFilter
();
this
.
emptyGeneInformationFilter
();
...
...
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