mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 22:48:11 +08:00
wire e2e gene set loading prototype
This commit is contained in:
@@ -52,6 +52,16 @@ async function userInfoFetch(dispatch) {
|
||||
});
|
||||
}
|
||||
|
||||
async function genesetsFetch(dispatch) {
|
||||
return fetchJson("genesets").then((response) => {
|
||||
const genesets = response?.genesets ?? {};
|
||||
dispatch({
|
||||
type: "geneset: initial load",
|
||||
init: genesets,
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
function prefetchEmbeddings(annoMatrix) {
|
||||
/*
|
||||
prefetch requests for all embeddings
|
||||
@@ -74,6 +84,7 @@ const doInitialDataLoad = () =>
|
||||
schemaFetch(dispatch),
|
||||
userColorsFetchAndLoad(dispatch),
|
||||
userInfoFetch(dispatch),
|
||||
genesetsFetch(dispatch),
|
||||
]);
|
||||
|
||||
const baseDataUrl = `${globals.API.prefix}${globals.API.version}`;
|
||||
|
||||
+45
-3247
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user