{ "cells": [ { "cell_type": "markdown", "id": "837a8ecd", "metadata": {}, "source": [ "# VCC Submission Notebook\n", "\n", "Hello! \n", "\n", "This is a notebook that will help you prepare your predicted AnnData to be ready to be scored by `cell-eval` against a validation dataset.\n", "\n", "Before we begin you will need a few things:\n", "\n", "1. `cell-eval` installed and in your `$PATH` (see our [installation guide](https://github.com/ArcInstitute/cell-eval?tab=readme-ov-file#installation))\n", "2. The number of expected cells / perturbation in the validation dataset (CSV) ([download](https://virtualcellchallenge.org/app))\n", "3. The gene names to predict (CSV) ([download](https://virtualcellchallenge.org/app))\n", "4. Your model predictions in an AnnData (h5ad)\n", "5. (Optional) The training AnnData (if you are not predicting Non-Targeting Controls) ([download](https://virtualcellchallenge.org/app))\n", "\n", "\n", "> Note: Your model predictions **may not exceed 100K cells total**" ] }, { "cell_type": "markdown", "id": "b5cc204d", "metadata": {}, "source": [ "## Building an Example Submission\n", "\n", "For the purposes of this tutorial we will be generating **random predictions** and preparing them to be evaluated.\n", "\n", "We will create an AnnData with *random gene abundances* for each cell, where the number of cells for each perturbation matches the number of cells in the validation dataset." ] }, { "cell_type": "markdown", "id": "3e9c543f", "metadata": {}, "source": [ "### Load in our Expected Counts" ] }, { "cell_type": "code", "execution_count": 1, "id": "2d172eea", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Dimensions: (50, 3)\n" ] }, { "data": { "text/html": [ "
| target_gene | n_cells | median_umi_per_cell |
|---|---|---|
| str | i64 | f64 |
| "SH3BP4" | 2925 | 54551.0 |
| "ZNF581" | 2502 | 53803.5 |
| "ANXA6" | 2496 | 55175.0 |
| "PACSIN3" | 2101 | 54088.0 |
| "MGST1" | 2096 | 54217.5 |