Web utilities for MassCube metabolomics workflows:
- Aligned Feature Table Viewer
- Peak Shape Viewer
- MS/MS Mirror Plot + Cosine Similarity Viewer
- mzML EIC Viewer (requires local Python backend)
npm install
npm run devnpm run build
npm run previewcd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python -m pip uninstall -y masscube
python -m pip install -e /Users/jiemoniu/Projects/Packages/masscube
python -m uvicorn app:app --host 127.0.0.1 --port 8000 --reloadNotes:
- Local development should use the local MassCube source tree at
/Users/jiemoniu/Projects/Packages/masscubeso the backend runs againstmasscube 1.2.21. - Using
python -m uvicornensures the server uses the backend virtual environment instead of a globaluvicorninstall.
- Deploy the backend API (recommended: Render)
- Push this repo to GitHub.
- In Render, create a Blueprint service from this repo (
render.yamlis included). - After deploy, copy the public backend URL (example:
https://masscube-eic-api.onrender.com).
- Set frontend API URL in GitHub
- In GitHub repo:
Settings -> Secrets and variables -> Actions -> Variables - Add repository variable:
- Name:
VITE_EIC_API_URL - Value: your backend URL from step 1
- Name:
- In GitHub repo:
- Redeploy frontend
- Push to
main(or re-run the Pages workflow). - The website will use the backend URL as default in the mzML EIC Viewer.
- Push to
- Restrict CORS in backend (recommended)
- Set backend env var
EIC_ALLOWED_ORIGINS=https://huaxuyu.github.io
- Set backend env var
- Push to
mainto trigger.github/workflows/deploy.yml. - The site is published to GitHub Pages at:
https://huaxuyu.github.io/masscube_webtools/