Cafe trajectory visualization and analysis tools in a floating CELLxGENE plugin window.
| Module | Available now |
|---|---|
| Plot | Main-panel trajectory overlay and synchronized preview; shared Preference setting for solid milestone nodes, labels, fixed-palette colors, node size, edge width/color and arrow size; static plots |
| Data | Prior information, trajectory history, embeddings, cache import and exports; optional AnnData-Web validation card |
| Method | Method/runtime selection, parameter forms, job status/logs/cancellation and result visualization; availability depends on installed runtimes |
| Explorer | Explicit pseudotime Spearman benchmark with a reference/root; Downstream Analysis groups Driver Gene, GRN, Enrichment and Pathway views |
| Agent | Local Preview of stored structure, metrics and limitations; not a reasoning agent or autonomous analysis workflow |
New trajectory/benchmark results are kept in the live session. Export them from
Data when needed; the input .h5ad is not automatically overwritten. Downstream
cards do not imply a complete GRN, enrichment or pathway workflow is implemented.
Use a Python 3.10–3.12 environment and install from PyPI:
python -m pip install cafe-cellxgenecafe-cellxgene launch /path/to/dataset.h5ad # the h5ad dataset is saved by FateAnnData.Open localhost:5005 and click Cafe Plugins.
import cafe
# fadata is an existing cafe.data.FateAnnData with trajectory results.
# If its trajectory has no saved UMAP projection, prepare it once:
cafe.plot.plot_trajectory(fadata, basis="X_umap", color="clusters")
server = fadata.launch_cellxgene(se_cellxgene_cafe=True, wait=False, open_browser=False)
# Open http://localhost:5020/ and click Cafe Plugins.
# Run separately after browsing:
server.terminate()
server.wait()Source installation requires Node.js/npm to build the frontend assets:
npm --prefix client ci
npm --prefix client run build
python -m pip install -e .To run the development server:
# In WSL/Linux, from the repository root
conda activate cafe
test -f .env || cp .env.example .env
bash scripts/dev.shSet CELLXGENE_SOURCE_ROOT, CELLXGENE_CONDA_ENV and CELLXGENE_DATASET in
.env, following .env.example. Development also needs Node.js/npm and a CELLxGENE
source checkout. Open backend port 5006, not frontend asset ports 3100/3101;
these defaults avoid the legacy application's 5005/3000/3001 ports. Existing
port conflicts are reported rather than force-killed by default.
Unlike the overlay CLI, dev.sh patches/copies files into the configured host
checkout. Use a dedicated development checkout. See Development
for source launches, tests, packaging and launcher options.
- Architecture and directories: folder responsibilities and
cafe_cellxgenevsserver - Development: commands, asset synchronization and troubleshooting
- Performance: startup/API measurement and troubleshooting
- Release: tagged PyPI publishing and authentication setup
- Documentation index: current user and developer guides
