← Latest papers
💻 bioinformatics

Rectangle: robust and scalable multiscale deconvolution informed by single-cell RNA sequencing data

Rectangle is a robust and scalable Python framework that leverages multiscale deconvolution and explicit modeling of unknown content to accurately resolve cell phenotypes in bulk RNA-seq data using single-cell references, thereby enabling high-resolution cellular profiling at population scales.

Original authors: Eder, B., Rigato, I., Dietrich, A., Merotto, L., Sturm, G., Treis, T., List, M., Theis, F., Finotello, F.

Published 2026-07-09
📖 5 min read🧠 Deep dive

Original authors: Eder, B., Rigato, I., Dietrich, A., Merotto, L., Sturm, G., Treis, T., List, M., Theis, F., Finotello, F.

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

The Big Problem: The "Smoothie" Mystery

Imagine you have a delicious fruit smoothie (this is Bulk RNA-seq data). You know it's a mix of strawberries, bananas, and blueberries, but you can't see the individual fruits anymore; they are all blended together.

Scientists have a powerful tool called single-cell RNA sequencing (scRNA-seq) that lets them look at every single fruit in a bowl before they are blended. They know exactly what a strawberry cell looks like, what a banana cell looks like, and so on.

The goal of this research is to use the "before" pictures (the single-cell data) to figure out exactly how much strawberry, banana, and blueberry is in the "after" smoothie (the bulk data). This process is called deconvolution.

However, existing tools have three big problems:

  1. They get confused by look-alikes: If you have two very similar types of strawberries (like a "sweet strawberry" and a "sour strawberry"), old tools often mix them up or assign the wrong amount to each.
  2. They choke on big data: If you try to analyze a smoothie made from a million fruits, the computer crashes or takes days to finish.
  3. They ignore the "mystery fruit": If the smoothie contains a fruit that wasn't in your "before" picture (maybe a hidden raspberry), old tools try to force the known fruits to fill that gap, giving you a wrong answer.

The Solution: "Rectangle"

The authors built a new tool called Rectangle. Think of it as a super-smart, high-speed blender detective that solves the smoothie mystery.

Here is how it works, step-by-step:

1. The "Group Hug" Strategy (Multiscale Deconvolution)

Imagine you are trying to sort a huge pile of mixed Legos. Some pieces are red, some are blue, but some red pieces look almost identical to blue ones.

  • Old way: Try to sort every single piece individually right away. You get tired and make mistakes.
  • Rectangle's way: First, sort them into big buckets: "Red-ish" and "Blue-ish." Once you know you have 50% "Red-ish," you then go back and carefully sort that bucket into "Sweet Strawberries" and "Sour Strawberries."
  • Why it works: By grouping similar cells first, Rectangle avoids getting confused by look-alikes. It solves the big picture first, then zooms in for the fine details.

2. The "Snapshot" Trick (Scalability)

If you have a library with 150,000 books (cells), reading every single page to make a summary takes forever.

  • Rectangle's trick: Instead of reading every book, it takes a quick "snapshot" (a small sample) of 500 books, makes a summary, and repeats this a few times.
  • The result: It builds a perfect summary of the whole library without ever needing to read every single page. This means it can run on a standard laptop in about one minute, even with massive datasets that would crash other tools.

3. The "Mystery Box" (Unknown Content)

Sometimes, the smoothie has a secret ingredient you didn't know about (like a hidden raspberry).

  • Old tools: They pretend the mystery ingredient is just a little bit of strawberry and a little bit of banana, messing up your counts.
  • Rectangle's trick: It admits, "Hey, there is stuff here I can't explain with my list." It creates a special "Mystery Box" category for that unknown content.
  • Why it matters: This ensures the counts for the known fruits (strawberries, bananas) remain accurate, because they aren't being forced to fill the gap left by the mystery fruit.

What Did They Prove?

The team tested Rectangle against eight other top-tier tools using real data from mice, humans, tumors, and even developing brain organoids (tiny, lab-grown brains).

  • Accuracy: Rectangle was the most accurate at telling the difference between very similar cell types (like the sweet vs. sour strawberries).
  • Speed: It was the fastest and used the least memory. It could handle a reference of 150,000 cells on a laptop, while other tools gave up or needed supercomputers.
  • Robustness: When there was "unknown content" (like hidden cancer cells or early-stage brain cells), Rectangle was the only tool that didn't get confused. It correctly identified the mystery fraction and kept the rest of the data accurate.
  • Versatility: They even showed it works on Spatial Transcriptomics (imagine a map of the smoothie where you know where the fruits are located), not just the blended smoothie.

The Bottom Line

Rectangle is a new, open-source software that lets scientists take large, mixed-up genetic samples and accurately figure out exactly what cells are inside them. It is fast enough to run on a laptop, smart enough to distinguish between very similar cells, and honest enough to admit when there are "unknown" cells it can't identify yet. This helps researchers study diseases and development on a massive scale without needing to sequence every single cell individually.

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 →