Skip to content

Colab with cytopus - #7

Merged
wallet-maker merged 6 commits into
mainfrom
colab_with_cytopus
Jul 25, 2026
Merged

Colab with cytopus#7
wallet-maker merged 6 commits into
mainfrom
colab_with_cytopus

Conversation

@wallet-maker

Copy link
Copy Markdown
Member

Updated interactive tutorial to include hierarchical queries

Copilot AI review requested due to automatic review settings July 25, 2026 21:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s user-facing onboarding materials by adding a new Google Colab notebook demonstrating pretrained Compocyte usage (including Cytopus-based hierarchy queries) and by refreshing the README’s Colab tutorial links.

Changes:

  • Adds a new Colab notebook: 02_pretrained_classifiers.ipynb (Compocyte + Cytopus hierarchical workflow).
  • Updates README to include a citation link and replaces old Colab “Drive” links with GitHub-backed Colab badge links.

Reviewed changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated 4 comments.

File Description
README.md Adds a preprint citation callout and updates Colab tutorial links to GitHub-hosted notebooks.
colab_tutorials/02_pretrained_classifiers.ipynb Introduces a new interactive tutorial notebook for pretrained classifiers + Cytopus hierarchy querying.
Comments suppressed due to low confidence (2)

colab_tutorials/02_pretrained_classifiers.ipynb:61

  • Installing dependencies directly from GitHub without pinning a tag/commit makes the tutorial non-reproducible (and increases supply-chain risk if upstream changes). Prefer a released version (PyPI/conda) or pin to a specific tag/commit SHA.
        "!pip install --quiet git+https://github.com/WALL-E-Lab/Compocyte.git"

colab_tutorials/02_pretrained_classifiers.ipynb:71

  • Same reproducibility concern here: cytopus is installed from GitHub without a pinned tag/commit. Pinning to a known-good ref keeps the tutorial stable over time.
        "!pip install --quiet git+https://github.com/wallet-maker/cytopus.git"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment on lines +59 to +61
Learn how to label your data using pretrained models [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/WALL-E-Lab/Compocyte/blob/colab_with_cytopus/colab_tutorials/02_pretrained_classifiers.ipynb)

Learn how to train a Compocyte classifier [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/WALL-E-Lab/Compocyte/blob/colab_with_cytopus/colab_tutorials/01_training_PBMC_classifier.ipynb)
Comment on lines +32 to +36
"source": [
"#Cytopus dependencies\n",
"!apt install libgraphviz-dev\n",
"!pip install pygraphviz"
]
Comment on lines +614 to +625
{
"cell_type": "markdown",
"id": "4abe410a",
"metadata": {},
"source": [
"'''\n",
"alternatively you can also retrieve the most granular annotations from the hierachy \n",
"starting on top of the hierarchy we can find the most granular label for each cell. Here, we start from the root node 'all-cells' so that all cells will be annotated.\n",
"'''\n",
"H.query_ancestors(query_node='all-cells', adata=hc.adata, obs_key='hierarchical_query')"
]
},
Comment on lines +49 to +53
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
@wallet-maker
wallet-maker merged commit fcfcddf into main Jul 25, 2026
4 checks passed
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.

2 participants