[2026-05-29] Solving an elusive bug: process and lessons learned
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.
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.
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
Spatial transcriptomics and duckplyr
Spatial transcriptomics, duckplyr and dplyr keep coming up together in this conversation.
About: Spatial transcriptomics, duckplyr, dplyr, 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, R programming language, Team Data Science, Spatial -omics
Who is mentioned in this episode?
1 person comes up, including Leonardo Collado Torres.
- Leonardo Collado Torres (Person)
Mentioned in this episode
- duckplyr (Product)
- Spatial transcriptomics (Idea)
- Spatial registration (Idea)
- Batch effect (Idea)
- Left join (Idea)
- dplyr (Product)
- Principal component analysis (Idea)
- Pseudo-bulking (Idea)
- DuckDB (Product)
- R (Product)
- Data Science (Idea)
- SBE object (Product)
- LIBD rstats club (Event)
- R programming language (Idea)
- Team Data Science (Company)
- Medial habenula (Location)
- Bioinformatics (Idea)
- Spatial -omics (Idea)
- Posit (Company)
- Bluesky (Company)