gene set summary progress (#2127)

* revert removal of cache control headers

* checkpoint work on revising summary route

* add summary query support to annoMatrix

* summarize route cleanup

* add mising file

* clean up summarize route

* add summary histogram

* update deps

* lint

* more lint

* lint

* manage crossfiler during gene set state changes

* remove obsolete debugging code

* correctly perform async watch in histogram

* better error handling
This commit is contained in:
Bruce Martin
2021-03-30 14:43:53 -07:00
committed by GitHub
parent bfb9e1edcc
commit ae30b66123
47 changed files with 28628 additions and 9109 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ const Annotations = (
"annotations-data-collection-name-is-read-only"
] ?? false;
const promptForFilename =
action.config.parameters?.["user_annotation_collection_name_enabled"];
action.config.parameters?.user_annotation_collection_name_enabled;
return {
...state,
dataCollectionNameIsReadOnly,
+1 -1
View File
@@ -76,7 +76,7 @@ const Autosave = (
const { lastSavedGenesets } = action;
return {
...state,
genesetSaveInProgess: false,
genesetSaveInProgress: false,
error: false,
lastSavedGenesets,
};
+2 -2
View File
@@ -57,12 +57,12 @@ const GeneSets = (
for (const gene of gsData.genes) {
genes.set(gene.gene_symbol, {
geneSymbol: gene.gene_symbol,
geneDescription: gene?.["gene_description"] ?? "",
geneDescription: gene?.gene_description ?? "",
});
}
const gs = {
genesetName: gsData.geneset_name,
genesetDescription: gsData?.["geneset_description"] ?? "",
genesetDescription: gsData?.geneset_description ?? "",
genes,
};
genesets.set(gsData.geneset_name, gs);
+2 -4
View File
@@ -10,10 +10,8 @@ const Ontology = (
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"];
action.config?.parameters?.annotations_cell_ontology_enabled ?? false;
const terms = action.config?.parameters?.annotations_cell_ontology_terms;
const termSet = new Set(terms);
return {
+1 -1
View File
@@ -178,7 +178,7 @@ See undoable.js for description action filter interface description.
Basic approach:
* trivial handlers for skip, clear & save cases to keep config simple.
* only implement complex state machines where absolutely required (eg,
multi-event seleciton and the like)
multi-event selection and the like)
*/
const actionFilter = (debug) => (state, action, prevFilterState) => {
const actionType = action.type;
+6
View File
@@ -100,6 +100,12 @@ const createFsmTransitions = (
to: "done",
action: cancelPending,
},
{
event: "continuous metadata histogram cancel",
from: "init",
to: "done",
action: save,
},
{
event: "continuous metadata histogram end",
from: "continuous histo select in progress",