← Latest papers
💻 bioinformatics

scDiagnostics: systematic assessment of cell type annotation in single-cell transcriptomics data

The paper introduces scDiagnostics, an open-source R package designed to systematically detect complex or misleading cell type annotations in single-cell transcriptomics data, thereby addressing a critical gap in current analysis workflows by ensuring the reliability of downstream interpretations.

Original authors: Christidis, A., Ghazi, A. R., Chawla, S., Turaga, N., Gentleman, R., Geistlinger, L.

Published 2026-07-11
📖 6 min read🧠 Deep dive

Original authors: Christidis, A., Ghazi, A. R., Chawla, S., Turaga, N., Gentleman, R., Geistlinger, L.

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ⚕️ This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Imagine you are a detective trying to identify suspects in a crowded room. You have a giant, perfect photo album (the Reference Dataset) of known people: a baker, a firefighter, a teacher, and a doctor. You also have a live video feed of a new crowd (the Query Dataset) that you need to label.

Usually, scientists use a "Label Transfer" tool to match the people in the video to the photos in the album. It's like a super-fast robot that says, "That guy looks 99% like the baker in the photo, so he's a baker!"

But here's the problem: What if the person in the video isn't a baker at all? What if they are a cyborg baker who has just been infected by a virus that makes them glow blue and speak in binary? The robot, looking only at the "baker" features, might still confidently say, "Baker!" because it doesn't know what a "cyborg" looks like. It forces the new, weird person into the closest existing box, even if that box is the wrong fit. This is what happens in single-cell biology when researchers try to label cells from a sick patient using a healthy photo album.

Enter scDiagnostics. Think of scDiagnostics not as a labeler, but as a suspicion meter. It doesn't try to guess the name of the cell; instead, it checks if the cell actually fits the description of the name it was given.

The Three Superpowers of scDiagnostics

The authors built this tool to spot when a cell is being "forced" into a category it doesn't belong to. They use three clever tricks:

  1. The Magic Mirror (Projection): Imagine projecting the video crowd onto the photo album's floor plan. If the "bakers" in the video land right on top of the "bakers" in the album, everything is fine. But if a group of cells lands in a weird, empty corner of the room, far away from their assigned group, scDiagnostics raises a red flag.
  2. The Twin Test (Alignment): This checks if the "bakers" in the video actually look like the "bakers" in the album. Do they have the same height, weight, and style? If the video "bakers" are suddenly wearing spacesuits (a sign of disease), this test spots the mismatch.
  3. The Outlier Radar (Anomaly Detection): This is the most exciting part. It uses a special algorithm (called an isolation forest) to find the "weirdos." It asks, "Who is standing all alone in the corner?" In the paper's tests, this radar successfully flagged cells that standard tools missed.

The Great Tests: Simulations and Real Life

The authors didn't just guess this would work; they put it through the wringer.

First, they played a game with fake data.
They created a simulated world with three types of cells: A, B, and C. Then, they hid cell type C from the "photo album" (the reference) but kept it in the "video" (the query). When the standard robot tried to label the video, it forced the missing C cells to pretend they were A or B.

  • The Result: scDiagnostics immediately spotted the trouble. The fake "C" cells got high "suspicion scores" because they didn't fit anywhere. The paper shows that in these simulations, the tool could clearly separate the real matches from the forced ones.

Next, they tackled a real-world mystery: COVID-19.
They took blood cells from healthy people (the album) and compared them to blood cells from COVID-19 patients (the video).

  • The Mystery: Standard tools labeled a specific group of immune cells (CD14+ monocytes) as "healthy monocytes."
  • The Twist: scDiagnostics flagged a chunk of these cells as "anomalous." When the authors looked closer, they found these "anomalous" cells were actually hyper-active, virus-fighting machines pumping out huge amounts of interferon (a warning signal).
  • The Proof: If you didn't use scDiagnostics, you would have missed this. You would have averaged the healthy cells with the super-charged virus cells, diluting the signal. The paper found that the "anomalous" cells had gene expression changes (log2-fold changes) of 2.30 for a gene called IFI6, while the "normal" looking ones only changed by 0.49. Without the tool, this massive difference would have been hidden.

Finally, they looked at a mouse with a tummy ache (Colitis).
Using a high-tech microscope that sees where cells are located in tissue (MERFISH), they looked at a mouse with inflamed intestines.

  • The Discovery: Standard tools saw a bunch of "fibroblasts" (support cells). scDiagnostics spotted a specific group of fibroblasts that were acting weird.
  • The Context: These "weird" fibroblasts were hanging out right next to invading immune cells (neutrophils) and damaged tissue. The healthy fibroblasts were staying near the stem cells where they belong.
  • The Impact: By separating the "sick" fibroblasts from the "healthy" ones, the authors could see that the sick ones were sending different chemical messages (like Il1b and Cxcl5) to the immune cells, while the healthy ones were sending different signals (like Wnt5a). This rewiring of the neighborhood was invisible until scDiagnostics split the group.

What scDiagnostics is NOT

It's important to know what this tool doesn't do.

  • It doesn't replace the tools that give the labels (like SingleR, Azimuth, or CellTypist). It works alongside them.
  • It doesn't magically know what the new cell is. It just says, "Hey, this label doesn't fit!"
  • The paper explicitly argues against the idea that a high "confidence score" from a standard tool means the label is correct. In the COVID-19 example, the standard tools were very confident (high scores) that the cells were healthy monocytes, but they were wrong. scDiagnostics proved that confidence alone is not enough.

The Bottom Line

The paper suggests that as we analyze more and more cells, we can't just blindly trust the robot to label them. Sometimes, the cells are doing something new, something sick, or something we haven't seen before.

scDiagnostics is like a safety net. It catches the cells that are being forced into the wrong boxes. In the simulations, it showed high sensitivity and specificity. In the real COVID-19 and colitis data, it revealed disease signals that were previously hidden. The authors hope this tool will become a standard part of the detective's kit, ensuring that when we say a cell is "Type A," we are actually sure it belongs there, and not just because we ran out of other options.

And the best part? It's free, open-source, and ready for anyone to use to check their own work.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →