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

From Leonardo Collado Torres

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, 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

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

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

Who is mentioned in this episode?

1 person comes up, including Leonardo Collado Torres.

Mentioned in this episode