DANCE 2.0: Transforming single-cell analysis from black box to transparent workflow

Jiayuan Ding, Zhijin Xing, Yixin Wang, Renming Liu, Sheng Liu, Zhi Huang, Wenzhuo Tang, Yuying Xie, James Zou, X. Qiu, Jian Ma, Guoxian Yu, Jiliang TangbioRxiv 2025

Abstract

Preprocessing is a critical step in single-cell data analysis, yet current practices remain largely a black-box, trial-and-error process driven by user intuition, legacy defaults, and ad hoc heuristics. The optimal combination of steps such as normalization, gene selection, and dimensionality reduction varies across tasks, model architectures, and dataset characteristics, hindering reproducibility and method development. We present DANCE 2.0, an automated and interpretable preprocessing platform featuring two key modules: the Method-Aware Preprocessing (MAP) module, which discovers optimal pipelines for task-specific methods via hierarchical search, and the Dataset-Aware Preprocessing (DAP) module, which recommends pipelines for new datasets via similarity-based matching to a reference atlas. Together, MAP and DAP execute over 325,000 pipeline searches across six major tasks—clustering, cell type annotation, imputation, joint embedding, spatial domain identification, and cell type deconvolution—yielding robust and generalizable recommendations. MAP-recommended pipelines consistently outperform original method defaults, with substantial gains across all tasks. Beyond automation, DANCE 2.0 reveals interpretable preprocessing patterns across tasks, methods, and datasets, transforming preprocessing into a transparent, data-driven process.

Introduction

In single-cell analysis, particularly for scRNA-seq and spatial transcriptomics, data is inherently noisy, sparse, and high-dimensional. To extract biological meaning, researchers rely on preprocessing pipelines involving normalization, gene selection, and dimensionality reduction. However, there is no "gold standard" pipeline; a sequence of steps optimized for cell clustering may prove ineffective for cell-type annotation or spatial deconvolution.

Currently, the field relies heavily on "legacy defaults" or manual trial-and-error, treating preprocessing as a black box. This lack of a systematic approach not only hinders reproducibility but also prevents machine learning models from reaching their full potential. DANCE 2.0 addresses this by providing an automated, open-source platform that replaces intuition with systematic, data-driven recommendations.

The DANCE 2.0 Framework

The platform introduces two core modules designed to automate and interpret the preprocessing workflow:

1. Method-Aware Preprocessing (MAP)

The MAP module utilizes a structured three-stage hierarchical search to identify the optimal pipeline for a specific algorithm. It explores combinations of preprocessing steps (Stage 1), selects the most effective functions for those steps (Stage 2), and fine-tunes their specific parameters (Stage 3). This ensures that the preprocessing is tailored to the unique requirements of the underlying model architecture, such as Graph Neural Networks (GNNs) or Autoencoders.

2. Dataset-Aware Preprocessing (DAP)

DAP serves as a "query-to-atlas" recommendation engine. When presented with a new, un-preprocessed dataset, DAP calculates similarity metrics (such as Wasserstein distance) against a reference atlas of 105 annotated datasets. It then recommends the pipeline that achieved the highest performance on the most similar atlas dataset, allowing researchers to leverage existing knowledge for novel data.

Data and Scale

The study is supported by a massive repository of single-cell data, representing one of the largest meta-analyses of preprocessing to date:

  • Benchmark Collection: 37 curated datasets covering 1.7 million cells across 16 tissues and 28 sequencing technologies.
  • DAP Reference Atlas: 105 annotated scRNA-seq datasets (over 1 million cells) spanning seven major human tissues including blood, brain, heart, lung, intestine, kidney, and pancreas.
  • Modalities: The platform supports scRNA-seq, single-cell multi-omics (CITE-seq, Multiome), and spatial transcriptomics.

Key Insights and Results

Through over 325,000 total pipeline evaluations, DANCE 2.0 has revealed several critical patterns in single-cell data science:

  • Method-Specific Requirements: Preprocessing needs are highly dependent on model architecture. For instance, GNNs and Autoencoders often require diverging normalization or filtering strategies to achieve peak performance.
  • Performance Gains: MAP-recommended pipelines consistently outperformed the original "default" settings of 28 state-of-the-art methods across six major tasks. Notably, in spatial deconvolution tasks, the SPOTlight method saw an error reduction of over 50% on the Mouse Olfactory Bulb dataset simply by optimizing preprocessing.
  • Universal Trends: While many steps are task-specific, NormalizeTotalLog1p emerged as a consistently strong performer across nearly all tasks. Conversely, aggressive filtering, such as FilterGenesTopK, frequently degraded performance.
  • Recommendation Accuracy: The DAP module’s recommendations for new datasets consistently ranked in the top 80th percentile of all possible pipeline candidates, demonstrating high generalizability.

Discussion and Future Work

While DANCE 2.0 represents a significant advancement toward transparent preprocessing, the authors identify several avenues for future development. The current function library focuses on common operations; incorporating advanced modules like batch correction is a priority. Additionally, while the DAP atlas is currently focused on cell-type annotation, future iterations will expand to include atlases for clustering and spatial analysis. As spatial-temporal and multi-modal data become more prevalent, the reference atlas will continue to grow to accommodate these complex data types.

Conclusion

DANCE 2.0 transforms single-cell preprocessing from a subjective hurdle into a transparent, data-driven workflow. By automating the search for optimal pipelines and providing a systematic framework for recommendation, it enhances both the performance and reproducibility of single-cell research. All resources, including the platform and search results, are available at https://github.com/OmicsML/dance.

Summary updated

BibTeX
@misc{ding2025dance,
  author = {Jiayuan Ding and Zhijin XING and Yixin Wang and Renming Liu and Sheng Liu and Zhi Huang and Wenzhuo Tang and Yuying Xie and James Zou and X. Qiu and Jian Ma and Guoxian Yu and Jiliang Tang},
  title = {{DANCE 2.0: Transforming single-cell analysis from black box to transparent workflow}},
  year = {2025},
  doi = {10.1101/2025.07.17.665427},
  howpublished = {bioRxiv},
}
Figure