Requires uv. To build the envrionment and install the package, run:
git clone https://github.com/snap-stanford/UCE-brain.git && cd UCE-brain
uv syncWe use a dataset on VPA-treated dorsal forebrain organoids dataset (here) for demo. To run the notebook, update the paths in the first cell to point to the downloaded H5AD file, model checkpoint, and gene mapping JSON file on your system.
The dataset can be downloaded from the cellxgene portal linked above, and the model checkpoint can be obtained from the Hugging Face model hub at KuanP/uce-brain-pilot-8l-512d (which should be automatically downloaded when you run the notebook, or downloaded from here). The gene mapping JSON file is included in the repository under gene_data/human_gene_dict.json.