DANCE: A Deep Learning Library and Benchmark Platform for Single-Cell Analysis

Jiayuan Ding, Hongzhi Wen, Wenzhuo Tang, Renming Liu, Zhaoheng Li, Julian Venegas, Runze Su, Dylan Molho, Wei Jin, Wangyang Zuo, Yixin Wang, Robert Yang, Yuying Xie, Jiliang TangbioRxiv 2022

Abstract

In the realm of single-cell analysis, computational approaches have brought an increasing number of fantastic prospects for innovation and invention. Meanwhile, it also presents enormous hurdles to reproducing the results of these models due to their diversity and complexity. In addition, the lack of gold-standard benchmark datasets, metrics, and implementations prevents systematic evaluations and fair comparisons of available methods. Thus, we introduce the DANCE platform, the first standard, generic, and extensible benchmark platform for accessing and evaluating computational methods across the spectrum of benchmark datasets for numerous single-cell analysis tasks. Currently, DANCE supports 3 modules and 8 popular tasks with 32 state-of-art methods on 21 benchmark datasets. People can easily reproduce the results of supported algorithms across major benchmark datasets via minimal efforts (e.g., only one command line). In addition, DANCE provides an ecosystem of deep learning architectures and tools for researchers to develop their own models conveniently. The goal of DANCE is to accelerate the development of deep learning models with complete validation and facilitate the overall advancement of single-cell analysis research.

Introduction

The field of single-cell analysis—studying biology at the resolution of individual cells—is currently experiencing a surge of innovation. While hundreds of new computational models are published annually, the community faces a significant reproducibility crisis. Existing tools are often fragmented across different programming languages and environments; for instance, Seurat is primarily R-based, while Scanpy is Python-based. Many deep learning models lack publicly available code or standardized hyperparameter settings, making fair comparisons nearly impossible.

DANCE (Deep Learning Library and Benchmark Platform for Single-Cell Analysis) addresses these challenges by providing a unified, extensible infrastructure. Unlike previous platforms that focus on specific modalities or lack standardized benchmarking capabilities, DANCE offers a comprehensive suite of tools for deep learning development and evaluation.

Comparison of DANCE with other popular single-cell analysis platforms across module coverage, deep learning infrastructure, and standardized benchmarks.

Methodology

DANCE is built on a robust deep learning stack including PyTorch, PyTorch Geometric (PyG), and the Deep Graph Library (DGL). Its architecture is strategically divided into two layers to balance flexibility and ease of use:

  1. Lower-level Infrastructure: This layer manages data loading from cloud sources, hardware acceleration (CPU/GPU), and essential data transformations. A key feature is its support for graph construction, which converts raw gene expression data into cell-cell or cell-gene graphs, facilitating the application of Graph Neural Networks (GNNs).
  2. Upper-level Task Development: This layer organizes single-cell research into three primary modules:
  3. Single Modality: Includes tasks such as clustering, imputation, and cell type annotation.
  4. Multimodality: Focuses on integrating disparate data types (e.g., RNA and protein levels) from the same cell.
  5. Spatial Transcriptomics: Analyzes gene expression while maintaining the physical spatial context of cells within a tissue.

The platform adopts a unified fit-predict-score paradigm, similar to the widely-used scikit-learn library. This design choice ensures that the library is intuitive for both biological researchers and machine learning engineers.

Datasets and Benchmarking

To facilitate rigorous evaluation, the authors integrated 21 benchmark datasets across 8 popular tasks. These datasets cover a wide range of biological contexts:

  • Single-cell RNA-seq: Includes 10X PBMC, Mouse Bladder Cells, and Worm Neuron Cells.
  • Multimodal Data: Features datasets from the NeurIPS 2021 Open Problems (CITE-seq and Multiome).
  • Spatial Data: Includes the LIBD Human Dorsolateral Prefrontal Cortex and Mouse Olfactory Bulb.

DANCE simplifies the data pipeline by caching these datasets on the cloud, allowing users to load and format them with simple function calls, thereby eliminating manual data management hurdles.

Results and Discussion

One of the most significant findings from the DANCE project is the impact of standardization on model performance. Re-implementing existing models within the DANCE framework often yielded better results than those originally reported. For instance, the models ACTINN and Celltypist saw average absolute accuracy increases of 44% and 7%, respectively, across three datasets. This underscores the importance of a standardized, well-tuned environment in achieving state-of-the-art results.

Furthermore, DANCE demonstrates the power of GNNs in single-cell analysis. By representing biological entities as nodes in a graph, these models can capture intricate relationships that traditional "flat" data structures might overlook. The platform also achieves its goal of minimal-effort reproducibility, allowing users to replicate complex SOTA results using a single command line.

Conclusion and Future Work

DANCE represents a major step toward bringing order to the rapidly evolving field of single-cell analysis. By unifying models originally written in disparate languages like R or TensorFlow into a single PyTorch-based environment, it lowers the barrier to entry for deep learning researchers.

Future developments for DANCE include:

  • DANCE as a Service (SaaS): A web-based interface to enable no-code model execution.
  • Live Leaderboards: To track and compare new model contributions from the community.
  • AutoML and Explainability: Integrating automated machine learning for model selection and "explainable AI" tools to provide biological insights into model predictions.

DANCE is an open-source project available at https://omicsml.ai/, welcoming contributions from the broader scientific community.

Summary updated

BibTeX
@misc{ding2022dance,
  author = {Jiayuan Ding and Hongzhi Wen and Wenzhuo Tang and Renming Liu and Zhaoheng Li and Julian Venegas and Runze Su and Dylan Molho and Wei Jin and Wangyang Zuo and Yixin Wang and Robert Yang and Yuying Xie and Jiliang Tang},
  title = {{DANCE: A Deep Learning Library and Benchmark Platform for Single-Cell Analysis}},
  year = {2022},
  doi = {10.1101/2022.10.19.512741},
  howpublished = {bioRxiv},
}
Figure