mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 02:18:12 +08:00
remove experimental ontology support (#2300)
* remove experimental ontology support * lint * remove ontologies from unit tests * additional test changes
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user