---
title: "[2026-05-29] Solving an elusive bug: process and lessons learned | Leonardo Collado Torres | Reclip.Me"
description: "In this concise session, the host walks through a stubborn bug encountered while analyzing spatial transcriptomics data, detailing how they noticed surprising…"
canonical: https://reclip.me/podcast/leonardo-collado-torres/2026-05-29-solving-an-elusive-bug-process-and-lessons-learned
---

# \[2026-05-29\] Solving an elusive bug: process and lessons learned

From [Leonardo Collado Torres](https://reclip.me/podcast/leonardo-collado-torres)

September 23, 2026

In this concise session, the host walks through a stubborn bug encountered while analyzing spatial transcriptomics data, detailing how they noticed surprising transcriptional differences between nearby extracellular clusters and cells. They recount their debugging approach, including cross-checking bin-to-cell mappings, performing joins, and validating plotting logic, with a focus on what signals raised red flags (unexpected correlations and registration expectations). The episode emphasizes…

[Read the full transcript of this episode](https://reclip.me/podcast/leonardo-collado-torres/2026-05-29-solving-an-elusive-bug-process-and-lessons-learned/transcript), with timestamps.

## Key Takeaways

- Spot the outliers early: red dots flagged unexpected neighbor-transcription hints a bug, not biology.
- Trust intuition but verify: a gut check from Leo nudged a bug hunt, not data bias.
- Registration quirks can fool you: correlations near but not at one often signal issues.
- Isolate where it matters: separate bin vs cell vs cluster files to spot mismatches.
- Always sanity-check with a different angle: shuffle plots and stats to validate findings.

## Storylines from this episode

Spot the outliers early: red dots flagged unexpected neighbor-transcription hints a bug, not biology.

### dplyr, in the episode's own words

Used as the expected behavior reference for joins; duckplyr's deviation from dplyr's guaranteed row-order preservation caused the bug.

> If I had used Dplyr directly with the left join, this always works.
>
> at 0:06
>

About: [dplyr](https://reclip.me/product/dplyr)

### R programming language, in the episode's own words

Explicitly referenced as the programming language used in the analyses and videos; part of the show's focus.

> I put the slides in the Google sheet, but you probably I'll be sharing my slides.
>
> at 0:32
>

About: [R programming language](https://reclip.me/concept/r-programming-language)

### Spatial registration, in the episode's own words

Spatial registration correlations were unexpectedly low and were a key signal that something in the data pipeline was wrong.

> We get these spatial registration stats for the extracellular data.
>

About: [Spatial registration](https://reclip.me/concept/spatial-registration)

### Spatial transcriptomics and duckplyr

Spatial transcriptomics, duckplyr and dplyr keep coming up together in this conversation.

About: [Spatial transcriptomics](https://reclip.me/concept/spatial-transcriptomics), [duckplyr](https://reclip.me/product/duckplyr), [dplyr](https://reclip.me/product/dplyr), [Batch effect](https://reclip.me/concept/batch-effect)

### LIBD rstats club and R programming language

LIBD rstats club, R programming language and Team Data Science keep coming up together in this conversation.

About: [LIBD rstats club](https://reclip.me/event/libd-rstats-club), [R programming language](https://reclip.me/concept/r-programming-language), [Team Data Science](https://reclip.me/company/team-data-science), [Spatial -omics](https://reclip.me/concept/spatial-omics)

## Who is mentioned in this episode?

1 person comes up, including Leonardo Collado Torres.

- [Leonardo Collado Torres](https://reclip.me/person/leonardo-collado-torres) (Person)

## Mentioned in this episode

- [duckplyr](https://reclip.me/product/duckplyr) (Product)
- [Spatial transcriptomics](https://reclip.me/concept/spatial-transcriptomics) (Idea)
- [Spatial registration](https://reclip.me/concept/spatial-registration) (Idea)
- [Batch effect](https://reclip.me/concept/batch-effect) (Idea)
- [Left join](https://reclip.me/concept/left-join) (Idea)
- [dplyr](https://reclip.me/product/dplyr) (Product)
- [Principal component analysis](https://reclip.me/concept/principal-component-analysis) (Idea)
- [Pseudo-bulking](https://reclip.me/concept/pseudo-bulking) (Idea)
- [DuckDB](https://reclip.me/product/duckdb) (Product)
- [R](https://reclip.me/product/r) (Product)
- [Data Science](https://reclip.me/concept/data-science) (Idea)
- [SBE object](https://reclip.me/product/sbe-object) (Product)
- [LIBD rstats club](https://reclip.me/event/libd-rstats-club) (Event)
- [R programming language](https://reclip.me/concept/r-programming-language) (Idea)
- [Team Data Science](https://reclip.me/company/team-data-science) (Company)
- [Medial habenula](https://reclip.me/location/medial-habenula) (Location)
- [Bioinformatics](https://reclip.me/concept/bioinformatics) (Idea)
- [Spatial -omics](https://reclip.me/concept/spatial-omics) (Idea)
- [Posit](https://reclip.me/company/posit) (Company)
- [Bluesky](https://reclip.me/company/bluesky) (Company)
