Data Portal for Single Cell Sequencing¶
Build an interactive viewer for single-cell RNA sequencing data using public datasets from the CZ CELLxGENE data portal.
:fontawesome-brands-youtube: Watch the video tutorial
Organise Project¶
- Create a folder for your project on your computer
- Create a data folder outside of your project folder
Get Single-Cell Data¶
-
Browse the CELLxGENE collections and find a dataset. For this example we use the Allen Institute Adult Human Brain Atlas — specifically the midbrain (substantia nigra) snRNA-seq dataset.
-
Download the
.h5adfile to your laptop (it is 416.2 MB). The dataset contains 59,505 cells x 58,232 genes with 11 cell types across 3 donors. Key metadata columns includecell_type,cluster_id,supercluster_term,donor_id, and UMAP coordinates inobsm['X_UMAP'].
Get Prompting¶
In Plan mode, type:
Result¶

Publish to GitHub¶
Once your app is working, you can save it to GitHub:
Install GitHub CLI¶
- Download GitHub CLI
- Authenticate:
gh auth login
Upload your code¶
In chat mode, ask:
Or create a repo first:
Keep your context clean while working¶
Long sessions building and debugging your app will fill the context window quickly. Before pushing to GitHub, read the Managing Context tutorial to learn how to use /compact, maintain a PLAN.md, and avoid hallucinations on longer projects.