remove experimental ontology support (#2300)

* remove experimental ontology support

* lint

* remove ontologies from unit tests

* additional test changes
This commit is contained in:
Bruce Martin
2021-07-14 07:23:38 -07:00
committed by GitHub
parent 45a8984223
commit e334fbe96e
35 changed files with 28 additions and 269 deletions
-2
View File
@@ -18,7 +18,6 @@ import annotations from "./annotations";
import genesets from "./genesets";
import genesetsUI from "./genesetsUI";
import autosave from "./autosave";
import ontology from "./ontology";
import centroidLabels from "./centroidLabels";
import pointDialation from "./pointDilation";
import { reembedController } from "./reembed";
@@ -31,7 +30,6 @@ const Reducer = undoable(
["config", config],
["annoMatrix", annoMatrix],
["obsCrossfilter", obsCrossfilter],
["ontology", ontology],
["annotations", annotations],
["genesets", genesets],
["genesetsUI", genesetsUI],
-31
View File
@@ -1,31 +0,0 @@
const Ontology = (
state = {
enabled: false, // are ontology terms enabled?
terms: null, // an array of term names, eg, ['cell', 'lung cell', ...]
termSet: null, // a Set object containing all terms, for fast lookup
loading: true,
},
action
) => {
switch (action.type) {
case "configuration load complete": {
const enabled =
action.config?.parameters?.annotations_cell_ontology_enabled ?? false;
const terms = action.config?.parameters?.annotations_cell_ontology_terms;
const termSet = new Set(terms);
return {
...state,
loading: false,
enabled,
terms,
termSet,
};
}
default: {
return state;
}
}
};
export default Ontology;