From ff9c28951276befdbf69b113a25c57dd5a983e86 Mon Sep 17 00:00:00 2001 From: LTLA Date: Sun, 23 Jul 2023 10:51:48 -0700 Subject: [PATCH 1/2] Updated to the latest bakana (itself using the latest scran.js). --- package.json | 4 ++-- src/workers/scran.worker.js | 28 ---------------------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index c114a3c0..072ff5ec 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", - "bakana-remotes": "^1.0.3", - "bakana": "^2.0.22", + "bakana-remotes": "^2.0.0-alpha.1", + "bakana": "^3.0.0-alpha.2", "bioconductor": "^0.3.1", "d3": "^7.8.2", "epiviz.gl": "1.0.4", diff --git a/src/workers/scran.worker.js b/src/workers/scran.worker.js index cf8dbb8a..c083df0c 100644 --- a/src/workers/scran.worker.js +++ b/src/workers/scran.worker.js @@ -184,34 +184,6 @@ function linkKanaDb(collected) { bakana.setResolveLink(kana_db.loadFile); -async function unserializeAllSteps(contents) { - const h5path = "serialized_out.h5"; - - let output; - try { - let loader = await bakana.parseKanaFile(contents, h5path); - let loaded_state = await bakana.loadAnalysis(h5path, loader, { - finishFun: postSuccess, - }); - - if (superstate !== null) { - await bakana.freeAnalysis(superstate); - } - superstate = loaded_state; - - output = { - parameters: translate.toUI(bakana.retrieveParameters(superstate)), - other: { - custom_selections: superstate.custom_selections.fetchSelections(), - }, - }; - } finally { - bakana.callScran((scran) => scran.removeFile(h5path)); - } - - return output; -} - async function postStepSummary(step) { try { let output = await fetchStepSummary(superstate, step); From 1a2b1083e0d05dbfa556db982caafbddb57e09f4 Mon Sep 17 00:00:00 2001 From: LTLA Date: Tue, 25 Jul 2023 10:32:21 -0700 Subject: [PATCH 2/2] Bumped versions out of alpha. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 072ff5ec..11843593 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", - "bakana-remotes": "^2.0.0-alpha.1", - "bakana": "^3.0.0-alpha.2", + "bakana-remotes": "^2.0.0", + "bakana": "^3.0.0", "bioconductor": "^0.3.1", "d3": "^7.8.2", "epiviz.gl": "1.0.4",