Commit 9a5525bd authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

add filter for gene with functions only

parent c22590cc
Pipeline #51859 failed with stages
in 47 seconds
......@@ -10,7 +10,7 @@
<v-spacer/>
{{ item.text }}
<v-spacer/>
<v-flex md8>
<v-flex md8>
<v-progress-linear
v-if="item.progressBar"
indeterminate
......@@ -181,6 +181,14 @@
grid-list-md
>
<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 -->
<v-flex sm12 md8 lg6 d-flex>
<v-text-field
......
......@@ -26,6 +26,7 @@ export default {
taxItems: [],
taxChoice: null,
// - Function
filterWithFunction: null,
functionID: null,
// Information about request
loadTable: true,
......@@ -89,6 +90,9 @@ export default {
if (this.functionID){
qParams.function = this.functionID;
}
else if (this.filterWithFunction){
qParams.has_functions = this.filterWithFunction;
};
if (this.taxChoice) {
qParams.tax_id = this.taxItems[this.taxChoice];
}
......@@ -336,6 +340,7 @@ export default {
},
emptyFunctionFilter() {
this.functionID = null;
this.filterWithFunction = null;
},
emptyFilters() {
this.emptyGeneInformationFilter();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment