Skip to content

Commit

Permalink
wip(smithereens): Dialog box now populated from index.json
Browse files Browse the repository at this point in the history
Progress! After some head scratching and ultimately renaming the building block components box is now populated with
species names from the `index.json` that are static files for Fragments and Muropeptides.

The `Build database` button is greyed out but that is something to work on next week.
  • Loading branch information
slackline committed May 20, 2024
1 parent e7812fa commit e91e14a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions web/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,14 @@
processingSmithereens = false;
})
// Reactively compute if Smithereens is ready
$: SmithereensReady = !loadingSmithereens && !processingSmithereens && smithereensWorker.fragmentsLibrary !== undefined && smithereensWorker.muropeptidesLibrary !== undefined;
$: console.log(`[+page.svelte] loadingSmithereens : ${loadingSmithereens}`)
$: console.log(`[+page.svelte] processingSmithereens : ${processingSmithereens}`)
// How to see the indexes and more importantly the values that is selected by the user as this determines what file
// is loaded.
// $: console.log(`[+page.svelte] smithereensWorker.fragmentsLibraryIndex : ${smithereensWorker.fragmentsLibraryIndex}`)
// $: console.log(`[+page.svelte] smithereensWorker.muropeptidesLibraryIndex : ${smithereensWorker.muropeptidesLibraryIndex}`)
$: SmithereensReady = !loadingSmithereens && !processingSmithereens && smithereensWorker.fragmentsLibraryIndex !== undefined && smithereensWorker.muropeptidesLibraryIndex !== undefined;
$: console.log(`[+page.svelte] SmithereensReady : ${SmithereensReady}`);
// $: console.log(`smithereensWorker.fragmentsLibraryIndex : ${smithereensWorker.fragmentsLibraryIndex}`);
// $: console.log(`smithereensWorker.muropeptidesLibraryIndex : ${smithereensWorker.muropeptidesLibrary}`);
// Send data to Smithereens for processing
function runSmithereensAnalysis() {
Expand Down

0 comments on commit e91e14a

Please sign in to comment.