mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 10:58:12 +08:00
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:
@@ -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,
|
||||
|
||||
@@ -76,7 +76,7 @@ const Autosave = (
|
||||
const { lastSavedGenesets } = action;
|
||||
return {
|
||||
...state,
|
||||
genesetSaveInProgess: false,
|
||||
genesetSaveInProgress: false,
|
||||
error: false,
|
||||
lastSavedGenesets,
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user