Skip to content
Snippets Groups Projects
Commit 9a5525bd authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion :recycle:
Browse files

add filter for gene with functions only

parent c22590cc
No related branches found
No related tags found
1 merge request!69Resolve "Allow filtering on genes with KEGG or EggNOG annotations"
Pipeline #51859 failed
...@@ -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
......
...@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment