---
title: "scRNA and spatial Transcriptomics transcript | AI4BIOMED26 | Reclip.Me"
description: "Full transcript of \"scRNA and spatial Transcriptomics\" from AI4BIOMED26, October 29, 2026. 24 min, 3,385 words, timestamped. 8 notable quotes and 21 mentions…"
canonical: https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript
---

Transcript

# scRNA and spatial Transcriptomics

From [AI4BIOMED26](https://reclip.me/podcast/ai4biomed26) · [Episode page](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics) · [Watch on YouTube](https://www.youtube.com/watch?v=3qpG49-6RFU)

October 29, 2026 · 24 min · 3,385 words · 32 timestamped sections

This is the full, timestamped transcript of "scRNA and spatial Transcriptomics", an episode of AI4BIOMED26 published October 29, 2026 (24 min, about 3,385 words). It mentions 21 people, works and ideas, including Single-cell RNA sequencing, Spatial transcriptomics, Scanpy, quality control, 10x Genomics Visium.

## What this episode is about

This beginner-friendly episode demystifies single-cell RNA sequencing and spatial transcriptomics, showing how “cells studied individually” reveals rare cell types that bulk methods miss. It covers the full pipeline—from tissue prep and barcoding to UMI-based counting, quality control, clustering with PCA/UMAP, and assigning cell identities via marker genes—plus the critical step of mapping cells back to tissue locations. Practical value is boosted by an accompanying code walkthrough and input files to help listeners run the workflow themselves.

## Key takeaways

- Single-cell tells time every cell individually, not just the smoothie-average.
- UMIs and barcodes: enough IDs to prevent double-counting and mislabeling.
- Spatial transcriptomics: GPS for cells—map them back to the tissue scene.
- From clusters to biology: markers convert numbers into real cell identities.
- Quality over chaos: QC and doublet checks keep the cell story honest.

## What is discussed, and when

1. [0:00](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=0) – 5:00: [Single-cell RNA sequencing](https://reclip.me/concept/single-cell-rna-sequencing), [Spatial transcriptomics](https://reclip.me/concept/spatial-transcriptomics), [quality control](https://reclip.me/concept/quality-control), [Principal component analysis](https://reclip.me/concept/principal-component-analysis)
2. [5:00](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=300) – 10:00: [Spatial transcriptomics](https://reclip.me/concept/spatial-transcriptomics), [Single-cell RNA sequencing](https://reclip.me/concept/single-cell-rna-sequencing), [10x Genomics Visium](https://reclip.me/product/10x-genomics-visium), [Google Colab](https://reclip.me/product/google-colab)
3. [10:00](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=600) – 15:00: [Scanpy](https://reclip.me/product/scanpy), [Single-cell RNA sequencing](https://reclip.me/concept/single-cell-rna-sequencing), [Spatial transcriptomics](https://reclip.me/concept/spatial-transcriptomics), [AnnData](https://reclip.me/product/anndata)
4. [15:00](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=900) – 20:00: [Principal component analysis](https://reclip.me/concept/principal-component-analysis), [Scanpy](https://reclip.me/product/scanpy), [Leiden algorithm](https://reclip.me/concept/leiden-algorithm), [UMAP](https://reclip.me/concept/umap)
5. [20:00](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1200) – 24:28: [Single-cell RNA sequencing](https://reclip.me/concept/single-cell-rna-sequencing), [10x Genomics Visium](https://reclip.me/product/10x-genomics-visium), [quality control](https://reclip.me/concept/quality-control), [Leiden algorithm](https://reclip.me/concept/leiden-algorithm)

## Notable quotes from "scRNA and spatial Transcriptomics"

-

> Whereas single cell RNA sequencing, it generates an individual report card for every cell.

*about [Single-cell RNA sequencing](https://reclip.me/concept/single-cell-rna-sequencing) · at [1:09](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=69)*
-

> Fake signals, right? So when a cell dies, its outer membrane pops out pops open and the cell contents leak out. If the cell has too much mitochondrial RNA, we remove Next is…

*about [quality control](https://reclip.me/concept/quality-control) · at [3:17](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=197)*
-

> Identifies its nearest neighbors and calls it K neighbors. Next, we're clustering them. So, the algorithm draws circles around the group of cells that act similarly, making them clusters.

*about [Cell clustering](https://reclip.me/concept/cell-clustering) · at [4:12](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=252)*
-

> That is spatial transcriptomics. Spatial transcriptomics acts like a GPS for cells. It measures gene expression directly onto a tissue slide, allowing us to overlay our single…

*about [Spatial transcriptomics](https://reclip.me/concept/spatial-transcriptomics) · at [5:43](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=343)*
-

> So, most importantly, we are using our toolkits like Scanpy, Squidpy, and Leidenalg. So, Scanpy is our main toolkit for standard single-cell RNA analysis, as we know. Next, Squidpy is.

*about [Scanpy](https://reclip.me/product/scanpy) · at [11:17](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=677)*
-

> Okay? So, the function SC read Visium present in the first line it automatically looks inside our main folder and the spatial folder to stitch the matrix and the microscopic.

*about [AnnData](https://reclip.me/product/anndata) · at [12:57](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=777)*
-

> Next is the Leiden algorithm. Here the Leiden algorithm groups these spots into distinct community clusters based on shared genetic profiles.

*about [Leiden algorithm](https://reclip.me/concept/leiden-algorithm) · at [16:39](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=999)*
-

> So, let me summarize the whole code or the pipeline figure. First, we are loading a 10x Genomics Visium FFPE human ovarian cancer data. It comprises of 3,455 spatial spots and 17,943 genes. So, we are performing.

*about [10x Genomics Visium](https://reclip.me/product/10x-genomics-visium) · at [22:40](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1360)*

## Who and what is mentioned in this episode?

### Products & tech

- [Scanpy](https://reclip.me/product/scanpy) — Product · Software toolkit · 3 mentions · first at [11:19](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=679)
Primary Python toolkit used in the notebook for single-cell and spatial analysis (normalization, HVG selection, PCA, neighbors, UMAP, clustering).
- [10x Genomics Visium](https://reclip.me/product/10x-genomics-visium) — Product · Data/source · 2 mentions · first at [9:07](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=547)
The Visium FFPE human ovarian cancer dataset (10x Genomics Visium) is the sample used in the notebook to demonstrate spatial transcriptomics analysis.
- [Squidpy](https://reclip.me/product/squidpy) — Product · Software toolkit · 1 mention · first at [11:19](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=679)
Mentioned as specialized software to align spatial images with genetic data and perform neighborhood/spatial analyses in the notebook.
Leidenalg. So, Scanpy is our main toolkit for standard single-cell RNA analysis, as we know. Next, Squidpy is specialized software. It is designed to align spatial images with the genetic data.
- [AnnData](https://reclip.me/product/anndata) — Product · Data structure · 1 mention · first at [12:31](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=751)
AnnData object is used to hold the expression matrix and spatial metadata (image and coordinates) for downstream Scanpy/Squidpy analysis.
- [Leidenalg](https://reclip.me/product/leidenalg) — Product · Algorithm implementation · 1 mention · first at [11:19](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=679)
The Python package/implementation referenced for running the Leiden community-detection algorithm as part of the analysis stack.
So, most importantly, we are using our toolkits like Scanpy, Squidpy, and Leidenalg. So, Scanpy is our main toolkit for standard single-cell RNA analysis, as we know. Next…
- [Python](https://reclip.me/product/python) — Product · Programming language · 2 mentions · first at [7:59](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=479)
Used to run the analysis code and libraries (Scanpy, Squidpy) in the notebook environment.
So, after installing all these, the import line brings these tools into our code. So, when we set sc.settings.verbosity is equals to three,.
- [Jupyter](https://reclip.me/product/jupyter) — Product · Notebook environment · 1 mention · first at [7:53](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=473)
Referenced as the notebook format (Jupyter .ipynb) being uploaded and run in Colab to execute the analysis code.
This will appear in my downloads. So, now I'll This is the ipynb notebook that I want. You can see Jupiter source file here. This is a Python file.
- [Google Colab](https://reclip.me/product/google-colab) — Product · Execution environment · 1 mention · first at [8:01](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=481)
Used as the runtime environment for running the provided Jupyter/Colab notebook and uploading the dataset.
After connecting to a runtime only this upload option will be available.

### Concepts & topics

- [Single-cell RNA sequencing](https://reclip.me/concept/single-cell-rna-sequencing) — Concept · Core topic · 7 mentions · first at [0:02](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=2)
Primary method described to profile gene expression at single-cell resolution; contrasted with bulk RNA sequencing and used as the basis for downstream spatial mapping.
- [Spatial transcriptomics](https://reclip.me/concept/spatial-transcriptomics) — Concept · Core topic · 5 mentions · first at [0:05](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=5)
Described as the GPS for cells that maps gene expression back onto tissue coordinates, enabling interpretation of single-cell or spot-level clusters in their anatomical context.
- [quality control](https://reclip.me/concept/quality-control) — Concept · Workflow step · 2 mentions · first at [3:08](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=188)
Stressed as necessary to remove artifacts such as dead cells, high mitochondrial counts, and doublets before downstream analyses.
- [Cell clustering](https://reclip.me/concept/cell-clustering) — Concept · Framework · 5 mentions · first at [4:16](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=256)
Described as grouping similar cells or spots into clusters (cluster 0, cluster 1, etc.) using dimensionality reduction and graph-based community detection to simplify interpretation.
- [Principal component analysis](https://reclip.me/concept/principal-component-analysis) — Concept · Strategy · 3 mentions · first at [3:57](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=237)
Explained as the dimensionality reduction step that compresses thousands of gene features into a smaller set of components used for neighbor graph construction and clustering.
So we're simplifying this problem. We use a computer algorithm that is principal component analysis to simplify thousands of genes measurements down to a mean pattern difference.
- [Leiden algorithm](https://reclip.me/concept/leiden-algorithm) — Concept · Method · 3 mentions · first at [11:21](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=681)
Used to partition the neighbor graph into clusters (Leiden clustering) to identify distinct spot communities on the tissue.
- [UMAP](https://reclip.me/concept/umap) — Concept · Tool/visualization · 1 mention · first at [16:24](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=984)
Used to project high-dimensional neighbor relationships into 2D for visualization of clusters and spatial patterns.
UMAP. It is nothing but unique manifold approximation and projection.
- [Bulk RNA sequencing](https://reclip.me/concept/bulk-rna-sequencing) — Concept · Contrast · 1 mention · first at [0:55](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=55)
Used to contrast single-cell approaches: bulk averages signals across many cells and can miss rare populations.
So, if 99% of your cells are healthy and 1% are cancer cells, bulk RNA sequencing will miss the cancer cells completely because they get back blended in it.
- [Cell barcoding](https://reclip.me/concept/cell-barcoding) — Concept · Technique/detail · 1 mention · first at [2:40](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=160)
Explained as unique ID tags given to each cell so reads can be attributed to the correct cell/spot.
Cell barcoding is a unique ID tag given to every cell. Every gene copy coming from cell one gets the cell one sticker.
- [Unique Molecular Identifier](https://reclip.me/concept/unique-molecular-identifier) — Concept · Technique/detail · 1 mention · first at [2:51](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=171)
Described as UMIs that prevent double-counting of PCR-amplified molecules and track individual RNA molecules during sequencing.
Okay? Next, UMI is nothing but unique molecular ID. It is it's a tracking number for each individual RNA molecule.
- [MT-CO1](https://reclip.me/concept/mt-co1) — Concept · Quality metric / example gene · 1 mention · first at [18:26](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1106)
Used as the mitochondrial gene example whose counts are plotted across the tissue to indicate metabolically active areas and to inform QC filtering.
So, the second plot what it's doing this is nothing but the, mitochondrial counts. It also maps the, it also maps the single mitochondrial gene, that is MT-CO1, which helps us,.
- [FRMD7](https://reclip.me/concept/frmd7) — Concept · Example gene · 1 mention · first at [20:51](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1251)
Used as a demonstration gene to map expression and illustrate how gene-level spatial maps can reveal regions of structural remodeling in the tissue.
The Leiden clusters, whereas the right plot is the FM FRMD7 expression. So, this Leiden clusters, it shows the nine broad cell neighborhood types discovered by this code.

### Places & events

- [AI for biomed 26](https://reclip.me/event/ai-for-biomed-26) — Event · Series / session · 1 mention · first at [0:02](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=2)
The show / session series hosting this beginner-friendly session on single-cell RNA sequencing and spatial transcriptomics.
Hello everyone, this is a session two of AI for biomed 26 on single cell RNA sequencing and spatial transcriptomics.

## Full transcript with timestamps

[0:00](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=0) Hello everyone, this is a session two of AI for biomed 26 on single cell RNA sequencing and spatial transcriptomics. So, this is a very beginner-friendly session. I hope everyone understands. And followed by this presentation, there's also a code explanation part where the code will be provided in the description and the input files also. You can run the code by yourself. It's going to make the concepts more clear. So, for now, let's continue. So, starting with single cell RNA sequencing, uh think of uh tissue like a uh you know, think of white tissue like a fruit smoothie.

[0:37](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=37) Uh old techniques analyze the whole smoothie at once. You know, it was sweet, but you couldn't tell how many strawberries, bananas, or blueberries were inside, right? So, single cell RNA sequencing tells us like it lets us pull out each piece of fruit one by one and study it individually. It's just an example. That's whereas bulk RNA sequencing, it mixes thousands of cells together and takes an average. So, if 99% of your cells are healthy and 1% are cancer cells, bulk RNA sequencing will miss the cancer cells completely because they get back blended in it.

[1:09](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=69) Whereas single cell RNA sequencing, it generates an individual report card for every cell. This, you know, this lets us spot rare, hidden, and you know, different kinds of cells. Uh here, we are going to discuss the workflow of what's actually happening in laboratory and computation, too. So, coming to laboratory, first we are collecting the tissue sample. Next, we unpack the tissue so every cell floats on its own. Next, we make sure the cells are alive and healthy. Next, we put each individual cell into its own tiny microscopic oil bubble that is trapping them. Next, we add a tiny molecular name tag that is uh to the RNA inside each bubble, which is called barcode.

[1:52](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=112) Next, we turn the we turn the RNA into cDNA. Next, we run the That is reverse sorry. Next we run the cDNA through DNA through sequencer for sequencing. So after sequencing we uh build a matrix that is count matrix, we can call it. It has genes and uh these cells. So we can see in each cell which kind of gene which gene is being expressed. We can see the number of genes being expressed. Here is we are going to talk about tracking cells with molecular name tags. So when you sequence millions of molecules, how do you know which molecule belong to which cell?

[2:38](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=158) You don't know, right? So to clear that problem we have cell barcoding and UMI. Cell barcoding is a unique ID tag given to every cell. Every gene copy coming from cell one gets the cell one sticker. Okay? Next, UMI is nothing but unique molecular ID. It is it's a tracking number for each individual RNA molecule. So when machines make copies of RNA during sequencing, UMIs prevent double counting. Next is QC, quality control. Uh so before trusting the data, we have to throw away the fake signals, right? So when a cell dies, its outer membrane pops out pops open and the cell contents leak out. If the cell has too much mitochondrial RNA, we remove Next is doublets. So if two cells trap together, if two cells accidentally get trapped in the same bubble, they look like one giant super cell with many with too many detected genes, right? So we filter these out so they don't confuse our results.

[3:42](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=222) Next is we are grouping similar cells together, that is clustering. So a human cell has over 20,000 genes. Okay? Making a spreadsheet for this is massive. So we're simplifying this problem. We use a computer algorithm that is principal component analysis to simplify thousands of genes measurements down to a mean pattern difference. Next, we're finding the neighbors to it. Like, the computer connects cells to cells that have similar gene activity patterns, creating a network map. It identifies its nearest neighbors and calls it K neighbors. Next, we're clustering them. So, the algorithm draws circles around the group of cells that act similarly, making them clusters.

[4:23](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=263) Next is we have visual a method to visualize that is UMAP. It is nothing but unique manifold approximation and projection. So, here it is a 2D map like a scatter plot that lets us easily see and display these distinct cell groups on a screen. So, we can see the clusters that we made on a UMAP clearly. It differentiates based on colors, differentiates based on numbers, etc. Next is uh naming the cell clusters. We're going to name the cell clusters here. So, in simple words, the computer only groups cells into numbers, cluster zero, cluster one, cluster two, etc. It doesn't know what they actually are. So, to figure out their real biological identity, we look at marker genes, genes known to belong to specific cell types.

[5:12](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=312) Okay, so cluster zero turns on CD3D here. That means uh those are mostly interpreted interpreted as T cells. Next, cluster one, it turns on MS4A1. So, it could be B cells. It's just an interpretation. It's not uh proven. So, after clustering, the most important part comes as putting cells back onto the tissue. So, here comes this main important part that is spatial transcriptomics. Spatial transcriptomics acts like a GPS for cells. It measures gene expression directly onto a tissue slide, allowing us to overlay our single single cell clusters back onto the microscopic pictures of the tissue. So, this lets us see which which cells live right next to each other. So, we can see the cells and also Who are of the cells?

[6:05](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=365) Next comes the uh uh What actually the scRNA-seq reveals. Okay, so there are five main things which it reveals. The first one is the resolution. We look at individual cells instead of average groups here. Next is the barcodes, that is unique tags that are used to identify cells and ensure accurate molecular counts. Next is quality. We can clean messy or broken cell data is which is very crucial. Next is cell identity. So, computer clusters need biological mar- marker genes to get real cell labels. Not only the numbers, we can also these marker genes can help us to identify the types of clusters.

[6:49](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=409) Next is spatial mapping. So, here spatial tools reconnect single cell data back into the original tissue geography. So, this is what spatial transcriptomics and single cell RNA sequencing does. Um Now, I'm going to explain the code which mostly includes spatial transcriptomics where we take a tissue, identify the cells and map the cells back onto the tissue. So, we can see the expression of those cells through a code. So, now we'll begin with the code of spatial transcriptomics. The ipynb notebook and input files will be available at the drive link in the description.

[7:30](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=450) Um so, first we will download files. Go to downloads. I've already downloaded them. It is zipped now. I'm going to unzip it. Extract all these files. Extract. This will appear in my downloads. So, now I'll This is the ipynb notebook that I want. You can see Jupiter source file here. This is a Python file. Now, we need to upload this in our Google Colab. Let's go to Google Colab. I've already uploaded, but I'll show it to you guys from the beginning.

[8:18](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=498) Here you can upload the notebook. Browse from your This is the environment. You upload it. Okay, before running we need to connect to a runtime. After connecting, you can open the file section here. An upload option will be available. After connecting to a runtime only this upload option will be available. So, upload. Open the So, yeah. These are the files that we downloaded. So, instead of all these, just upload this file that is Visium FFPE human ovarian cancer. Okay, upload. It'll take some time, but after uploading we need to proceed with running the first block of the code that that is mkdir spatial. mkdir is nothing but making a directory. So, here we are creating a folder called spatial in our workspace. That is here. We are not creating on the desktop. We are creating in our workspace.

[9:41](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=581) So, it it has run successfully and uh spatial folder is created. You can see here. Next, we'll upload some input files into this spatial folder. These are the files present in our uh in the drive link that will be provided to you. So, upload them.

[10:29](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=629) So, in the second block, the second cell of the code, we are just checking, double-checking that all our input data files are downloaded in the right place. Next, uh dependency. So, Next is the dependency. Um Don't panic. You don't need to panic after running running the dependency. This is just a leftover placeholder note from where from where the notebook was created. So, it's meant to remind the author to install the packages in the next step. That's it. So, you can just safely skip this or delete the cell. I just deleted it because I don't need it.

[11:11](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=671) So, in this block, we are installing the packages that is required for spatial transcriptomics. So, most importantly, we are using our toolkits like Scanpy, Squidpy, and Leidenalg. So, Scanpy is our main toolkit for standard single-cell RNA analysis, as we know. Next, Squidpy is specialized software. It is designed to align spatial images with the genetic data. Next, Leidenalg. It is an algorithm that mathematically glues the similar cells together. So, after installing all these, the import line brings these tools into our code. So, when we set sc.settings.verbosity is equals to three, so, Scanpy prints helpful updates about what it's doing behind the scenes.

[11:55](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=715) Okay? As you can see in the output, once all the packages finishes downloading, the Python prints us a success message, "Dependencies installed." And you can see under this the dependencies are installed and imported successfully. Okay. So, in the next block that is load your sample load your local local uh Visium data set with the exact file name. Here Here we are loading the biological data set into a structure called an Ann data object. And we name that as A data. So, think of Ann data object as a giant digital binder. It holds two main things at once. The gene table and a spatial overlay.

[12:45](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=765) So, a gene table is a grid showing the expression of thousands of genes across thousands of tissue spots. And a spatial overlay is nothing but the actual microscopic image of the tissue and exact XY coordinates of every spot. Okay? So, the function SC read Visium present in the first line it automatically looks uh inside our main folder and the spatial folder to stitch the matrix and the microscopic folder together into one master file. So, in the output you can see there's um N OBS into N bars something like this, right? So, here uh 3,455 is the number of observations. These are the distinct microscopic spots sampled across the ovarian tissue slice. And 17,943 are the variables. These are the individual human genes measured at each of the spot.

[13:39](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=819) Okay? Moving to the next block. Here uh so, before uh analyzing genes, we have to clean the data. Okay? So, because some spots on the slide naturally absorb some more some more of the dyes and the other artifacts, right? So, which creates the uh artificial noise. So, to remove that noise, you need to follow these main steps. That is normalization. So, imagine comparing 10 test scores between a student who took a 10-question quiz and one who took 100 question quiz. So, to compare them fairly, you scale them up, right?

[14:21](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=861) That's what a total normalization does. It scales gene reads, so every spot sums up to 10,000 units. Something like that. So, log 1p, that is log transformation, is nothing but it's a few few extremely active genes can swap all the rest. So, taking the log expression numbers brings huge values back down to scale. Like, you can bring um large numbers to zero points, like 0.1, 0.2s, 0.3s, etc. Next is the highly variable genes. So, out of 17,943 genes that we got, many perform routine housekeeping functions, um uniform which are uniform across all cells. So, we isolate the 20,000 most variable genes. Sorry, 2,000 most variable genes, the ones that actually distinguish cancer cells from healthy cells.

[15:12](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=912) Okay. Next, we scale values, so no single gene dominates. This is nothing but we are adjusting every gene's average score to zero, so no single gene overpowers our algorithm and capping extreme outliers at 10. So, in the output, you can see Scanpy tells us each mathematical transformation finished in under a second. Next is clustering the tissue regions. So, here we are performing PCA, that is principal component analysis. Uh so, uh let's take an example. It's impossible for our brains to compare 2,000 genes simultaneously. So, principal component analysis, it compresses 2,000 genes into 50 master channels, while preserving almost all the underlying information. Okay. Next, we are calculating the neighbors.

[16:07](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=967) Um So, here this code inspects every spot and builds a neighborhood neighborhood social network, connecting each spot to its 10 greatest genetic twins. That is K10. We are taking each number as K. Next, we are creating a UMAP. So, here it creates a 2D map so that we can plot this high dimensional connection so now you know to visualize them clearly. All these connections, all these neighborhood connections, we can visualize them using UMAP. Next is the Leiden algorithm. Here the Leiden algorithm groups these spots into distinct community clusters based on shared genetic profiles.

[16:54](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1014) So, looking at our output logs, the computer calculates uh it already calculated our 50 principal components. There are 50 You can see here. Yeah. 50 principal components. And it established uh the neighbor network. Also, it generated a 2D map and computed the clustering. So, you can see this map here. We're displaying the UMAP that we created here. All right. So, now here what is happening is up until now the computer looked at the gene patterns without caring where the spots were located physically on the slide, right?

[17:32](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1052) So, this block it takes those nine discovery groups that is clusters we have seen in the previous one. So, here we have nine clusters. Yeah, here we have nine clusters, right? Different colors. So, it takes these clusters and plots them back onto the actual map of the tissue sample. Okay, this is a tissue sample and all those clusters are plotted on this tissue sample. Why we are doing it? Because it lets you see if specific cell group like uh if specific uh cell groups lines up with the actual biological regions.

[18:03](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1083) So, it's like separating the main tumor core from the surrounding healthy tissue or the blood vessels. Um Next, the second plot. We have two two plots in this, right? We have We got two outputs here. So, the second plot what it's doing uh this is nothing but the, uh, mitochondrial counts. It also maps the, it also maps the single mitochondrial gene, that is MT-CO1, which helps us, which helps cells to produce the energy. So, across the entire tissue slide to show which areas are metabolically active. So, next block.

[18:42](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1122) Here's, um, Let me give you an example. So, imagine a crowded neighborhood where you want to see if certain groups of people like to live right next to each other or stay far apart. So, the computer draws invisible lines connecting neighbor neighboring spots on the slide. It measures neighborhood enrichment, that is checking if the spots from cluster one frequently touch spots from cluster two. So, why we need this is because in cancer this reveals how tumor cells interact with surrounding immune or structure cells. It shows whether immune cells are actively invading the tumor or it is being blocked by blocked at the border. So, we can identify the activity of the tumor with this. We can analyze, not identify, but we can analyze it.

[19:34](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1174) So, this is the output that we get here. Next is the interactive gene spatial map. So, here what we did is we created a customizable clickable 2D map. See, as I move the cursor, you can see the changes, there's a changes in values of X and Y, and the expression also. So, you can see the expression levels here. Yellow color indicates highest expression, that is nine. When I spot on the yellow, uh, when I touch the yellow spots, you can see the expression goes up until 9.175. Okay. So, here it creates a customizable clickable 2D map where you can hover over any spot to inspect its exact coordinates and gene activity levels.

[20:30](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1230) So, we can find the loudest genes here. This the code sums up gene activities across all the 3,455 spots to find which genes are expressed most throughout the entire sample. Uh so, you know, the top we gave here an example, okay? This is just an example. The FRD FRMD7 is a gene involved in setting up the cell shape and structure. So, mapping FRMD7 visually, it helps to pinpoint specific cancer subregions where structural remodeling is taking place. So, that is the reason we put FRMD7 here. You can find the most You can find your needed gene and you can put it in this particular place inside the quotes, and you can get the map of that gene.

[21:18](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1278) Moving on, we have uh Okay, that is side-by-side comparison of Leiden clusters and gene expression. So, here, this code creates two spatial maps, okay? Using same tissue coordinates, obviously. The left plot is the Leiden clusters, whereas the right plot is the FM FRMD7 expression. So, this Leiden clusters, it shows the nine broad cell neighborhood types discovered by this code. Uh and it is color-coded by cluster IDs. Next, this uh the right side map which shows It is a heat map of FRMD7 expression levels across those same exact spots.

[21:57](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1317) Okay? Uh why we need to do this is because instead of switching back and forth between two separate images, putting them side by side, you know, it lets you immediately cross-examine the gene. That is the reason I put here. It's not compulsory, but it's just for visualization. So, here, in the last section, we are uh printing the highly expressed genes. So, now, you can look at the genes in the output. You can put any of these genes inside this block of the code and check their expression in an interactive 2D way.

[22:37](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1357) Okay, so this is what this code does. So, let me summarize the whole code or the pipeline figure. First, we are loading a 10x Genomics Visium FFPE human ovarian cancer data. It comprises of 3,455 spatial spots and 17,943 genes. So, we are performing pre-processing and quality control by standardized sequencing depths across spots. We are performing log transform counts and selected 2,000 highly variable genes. Next, we reduce the dimension using PCA. Um we are like Next, we built a K20 nearest neighboring graph. Next, we projected the 2D space with UMAP. And also, we partitioned the spots into nine distinct clusters using Leiden graph clustering.

[23:28](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1408) Next, we map these cluster boundaries back to the physical slide coordinates and evaluated the spatial neighborhood interactions. Next, we built an interactive scatter map for spatial expression, also profiling the ranked overall data set abundance. We identified the highly highly expressed genes, that is the list given in the last output. So, the main important thing is this pipeline. It successfully bridges single-cell transcriptomic profiling with intact tissue architecture. So, by linking unsupervised graph clusters directly by physical coordinates and evaluating, you know, co-expression side by side, you can precisely delineate the tumor core subregions, invasive borders, and also stromal niches in ovarian carcinoma.

[24:16](https://reclip.me/podcast/ai4biomed26/scrna-and-spatial-transcriptomics/transcript?t=1456) Okay, so I hope this helps. Uh the input files and the notebook that I ran will be provided in the description. Thank you for watching.

## Questions about this episode

### What is "scRNA and spatial Transcriptomics" about?

This beginner-friendly episode demystifies single-cell RNA sequencing and spatial transcriptomics, showing how “cells studied individually” reveals rare cell types that bulk methods miss. It covers the full pipeline—from tissue prep and barcoding to UMI-based counting, quality control, clustering with PCA/UMAP, and assigning cell identities via marker genes—plus the critical step of mapping…

### What is mentioned in this AI4BIOMED26 episode?

21 people, works and ideas are mentioned, including Single-cell RNA sequencing, Spatial transcriptomics, Scanpy, quality control, 10x Genomics Visium, Cell clustering. Each one on this page links to its own page with every episode that mentions it.

### How long is "scRNA and spatial Transcriptomics"?

The episode runs 24 min; the transcript is about 3,385 words in 32 timestamped sections.

## More from AI4BIOMED26

- [All analyzed episodes](https://reclip.me/podcast/ai4biomed26)
- [Topics mentioned on AI4BIOMED26](https://reclip.me/podcast/ai4biomed26/topics)

About this transcript: The transcript is the YouTube captions for an episode that is already public on YouTube. It is split into timestamped sections. Reclip.Me locates every person, work and idea in the text, keeps the time it is first named, and quotes the words around it verbatim. Last updated December 4, 2026.
