Skip to content

Deep link: run AutoLin on a remote tree via ?pb=<url> - #57

Merged
amkram merged 2 commits into
mainfrom
pb-url-deeplink
Jul 23, 2026
Merged

Deep link: run AutoLin on a remote tree via ?pb=<url>#57
amkram merged 2 commits into
mainfrom
pb-url-deeplink

Conversation

@amkram

@amkram amkram commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Adds a ?pb=<url> deep link so another site (e.g. a Taxonium viral-usher tree page) can hand a protobuf straight to Linolium.

  • On load, the URL is fetched and inflated (if still gzipped) and selected as the input — then it waits for the user to click Run Pipeline (no auto-run).
  • Refuses trees over 100 MB with a 'use the Docker app' message instead of wedging the tab.
  • Extracts the fetch/gunzip out of the sample-data button into fetchPbAsFile so both paths share one implementation.

Verified end-to-end in the backendless build against a real viral_usher tree (Adeno_associated_virus_1): CORS fetch from GitHub Pages → AutoLin in Pyodide → 24 lineages, viewer launches. Frontend-only (src/ui/src/LauncherApp.jsx).

Merging deploys it to the Vercel (backendless) site.

amkram added 2 commits July 22, 2026 14:23
Lets another site hand a protobuf straight to Linolium — e.g. a Taxonium tree page
linking to linolium.vercel.app/?pb=<usherProtobuf>. On load the URL is fetched,
inflated if still gzipped, and run through the normal pipeline.

Extracts the fetch/gunzip out of the sample-data button into fetchPbAsFile so both
paths share it, and refuses trees over 100 MB rather than wedging the tab.
Don't auto-run AutoLin on ?pb= load — fetch and select the tree, let the user
review parameters and click Run Pipeline.
@amkram
amkram merged commit fbf9c94 into main Jul 23, 2026
1 check passed
@amkram
amkram deleted the pb-url-deeplink branch July 23, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant