Skip to content

Commit

Permalink
no filter for vcfinfo cols if filterable is false
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoad committed May 22, 2023
1 parent 5e4209f commit fcb5d45
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion cravat/webresult/nocache/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,25 @@ function afterGetResultLevels () {
});
jobDataLoadingDiv = drawingRetrievingDataDiv(currentTab);
$.get('/result/service/variantcols', {job_id: jobId, username: username, dbpath: dbPath, confpath: confPath, filter: JSON.stringify(filterJson)}).done(function (jsonResponseData) {
filterCols = jsonResponseData['columns']['variant'];
allVarCols = JSON.parse(JSON.stringify(jsonResponseData['columns']['variant']));
filterCols = [];
for (let colGroup of allVarCols) {
if (colGroup.name === 'vcfinfo') {
let filterableCols = [];
for (let col of colGroup.colModel) {
if (col.filterable) {
filterableCols.push(col);
}
}
if (filterableCols.length > 0) {
filterCols.push(colGroup);
filterCols.slice(-1)[0].colModel = filterableCols;
}
} else {
filterCols.push(colGroup)
}

}
usedAnnotators = {};
var cols = jsonResponseData['columns']['variant'];
usedAnnotators['variant'] = [];
Expand Down

0 comments on commit fcb5d45

Please sign in to comment.