← Latest papers
💻 bioinformatics

scDblFinder in Python with GPU support

This paper introduces scDblFinderPy, a Python implementation of the R-based scDblFinder doublet detection tool that replicates its high performance while adding optional GPU support to accelerate processing for large-scale single-cell sequencing data.

Original authors: Hiropedi, A., Germain, P.-L.

Published 2026-08-20
📖 5 min read🧠 Deep dive

Original authors: Hiropedi, A., Germain, P.-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

In the microscopic world of modern biology, scientists have developed a way to read the genetic instructions inside individual cells, one by one. This technique, known as single-cell sequencing, allows researchers to see how thousands or even millions of unique cells function, revealing the hidden diversity of tissues and organs. However, the machinery used to capture these cells is not perfect. Occasionally, the process traps two or more cells inside the same tiny container meant for just one. When the machine reads the genetic material from this mixed bag, it creates a confusing signal that looks like a single, strange new type of cell. Scientists call these errors "doublets," and if they are not found and removed, they can lead researchers to draw false conclusions about how the body works.

To solve this problem, a team of researchers has created a new digital tool designed to hunt down these errors. The tool is a version of a successful program originally built for a different type of computer language, now rewritten to work in the language most commonly used by data scientists today. By making this switch, the researchers have made the tool faster and more accessible, while also adding a special feature that allows it to run on powerful graphics processors, the same kind of chips found in high-end gaming computers, to handle massive amounts of data with incredible speed.

The original tool, known as scDblFinder, was already considered a top performer in the field of biology, but it was built for a software environment called R, which is popular among statisticians but less common in the broader world of data science. Many researchers who work with large biological datasets prefer a different environment called Python. Because the original tool did not speak Python, many scientists were forced to use less accurate methods or struggle with compatibility issues. The new work presented here describes the creation of scDblFinderPy, a faithful translation of the original tool into Python. The goal was not to invent a new way of finding errors, but to recreate the exact same logic in a new language so that more people could use it without losing the high quality of the results.

To ensure the new tool worked exactly as intended, the researchers rebuilt its internal steps to match the original program, step by step. They had to make careful choices when translating the code, such as selecting specific mathematical methods that behaved the same way in both languages. For instance, they had to choose a specific way to group similar cells together that matched the original logic, even if it meant using a slightly different standard method available in the new software. They also ensured that the tool could handle the complex math required to compare cells, using standard libraries that are well-known and trusted in the Python community.

A major innovation in this new version is the ability to use graphics processing units, or GPUs, to speed up the work. While the original tool ran on standard computer processors, this new version can be switched to use the parallel processing power of GPUs. The researchers designed the system so that the heavy lifting, such as comparing the genetic profiles of thousands of cells, happens on the GPU, while smaller, less intensive tasks remain on the standard processor. This setup allows the tool to process data much faster than before, especially when dealing with very large datasets containing millions of cells. The system is designed to be flexible; if a computer does not have a compatible graphics card, the tool automatically switches back to the standard processor without failing, ensuring it works on almost any machine.

The team tested their new tool against the original version and several other methods used by scientists to find these errors. They used a collection of sixteen different datasets that had been carefully prepared to test how well these tools work. In these tests, the new Python version performed just as well as the original R version, successfully identifying the mixed-up cells with the same high level of accuracy. It also outperformed a different Python tool that had been created by another group, though the difference was small. The results showed that no single method was perfect for every single dataset, but the new tool consistently ranked among the best, proving that the translation to a new language did not weaken its ability to find the truth in the data.

Beyond accuracy, the researchers measured how long it took to run the analysis. On a standard computer processor, the new Python version was nearly twice as fast as the original R version. When they turned on the graphics processor, the speed increased even further, making the process significantly quicker for large-scale studies. This speedup is crucial because the size of biological datasets is growing rapidly, and researchers need tools that can keep up with the volume of information they are generating. The new tool also showed that running the analysis multiple times and averaging the results provided only a very small improvement in accuracy, suggesting that a single run is usually sufficient for most purposes.

The researchers concluded that their work successfully brings a state-of-the-art method for cleaning biological data into the Python community. By preserving the original logic while adding modern speed and accessibility, they have provided a robust solution for scientists who need to ensure their data is free from the confusion of doublets. The tool remains easy to use, with scores that can be interpreted as probabilities, allowing researchers to decide where to draw the line between a real cell and a mistake. As the field of single-cell biology continues to expand, tools like this one ensure that the massive amounts of data being collected can be understood clearly and correctly, free from the noise of accidental mix-ups.

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 →