scvi-hub: A flexible framework for reference enabled single-cell data analysis

Can Ergen, Valeh Valiollah Pour Amiri, Martin Kim, Aaron Streets, Adam Gayoso, Nir YosefMLGenX @ ICLR 2024

TL;DR

The paper introduces scvi-hub, a platform for sharing and reusing pre-trained single-cell omics models. This framework significantly lowers the computational and expertise barriers for performing complex analyses on new datasets by enabling efficient transfer learning from existing reference atlases.

What Problem Does This Paper Address?

The explosion of single-cell omics data has created a wealth of information, but leveraging it for new analyses is hampered by the need for complex, resource-intensive preprocessing steps like data transfer, normalization, and integration. This often requires specialized knowledge and significant computational power, limiting accessibility. Furthermore, sharing and reusing pre-trained models is challenging due to a lack of standardization in model formats, libraries, and deposition methods, making it difficult to assess model quality and integrate them into existing workflows.

Methods

scvi-hub is built upon the scvi-tools library and integrates with the scverse ecosystem. Its core functionality revolves around a model-driven approach to single-cell data analysis. Key methods include:

  • Model Sharing and Retrieval: Utilizes the Hugging Face Model Hub for discoverability, version control, and standardized model cards.
  • Data Minification: A novel technique to compress reference datasets by storing only latent posterior parameters, significantly reducing storage and download bandwidth requirements while enabling efficient downstream analysis.
  • Posterior Predictive Checks (PPCs) via scvi.criticism: A module for evaluating model quality by comparing model-generated data to observed data using metrics like coefficient of variation and differential expression. This is crucial for both model contributors and consumers.
  • Transfer Learning with scArches: Enables projecting query datasets onto reference models to create joint embeddings, facilitating tasks like visualization, annotation, and differential expression analysis with minimal retraining.

Datasets

The paper demonstrates scvi-hub's capabilities using several datasets:

  • Human Lung Cell Atlas (HLCA): Used as a primary reference dataset for various analyses, including visualization, annotation, and differential expression.
  • Tabula Sapiens: Used for training reference models and as a query dataset for transfer learning experiments.
  • Emphysema Dataset: Used as a query dataset to demonstrate disease-specific analysis and label infusion.
  • Cross-tissue immune cell dataset: Used for label infusion experiments.
  • CELLxGENE Discover: Various datasets from this platform were used, including epithelial cells from Tabula Sapiens, emphysema data, cross-tissue immune-cell data, and prostate data.
  • Heart Cell Atlas: Used for evaluating model performance with scvi.criticism.

Key Insights and Ideas

  • Democratizing Advanced Analysis: By providing readily accessible, pre-trained models, scvi-hub makes sophisticated single-cell analysis techniques available to a broader community, including those with limited computational resources or specialized expertise.
  • Efficiency through Data Minification: Storing only latent posterior parameters instead of raw count matrices dramatically reduces data size, making large reference datasets more manageable and accelerating analysis workflows.
  • Model Quality Assurance: The scvi.criticism module is essential for building trust in shared models, allowing users to verify their suitability for specific query datasets and ensuring reliable downstream results.
  • Enriching Existing Datasets: Transfer learning with scvi-hub can reveal novel insights from reference datasets by integrating them with more finely annotated query data, leading to improved cell-type resolution and discovery of subtle biological patterns.

Key Results

  • scvi-hub facilitates immediate access to fundamental tasks like visualization, imputation, and annotation for new datasets.
  • Data minification offers over 50% speed improvement for dataloaders compared to standard datasets.
  • The platform hosts over 90 pre-trained models, seeded with data from the Tabula Sapiens consortium and other projects.
  • Reference-based annotation using scvi-hub and scArches provided greater resolution than original annotations in some cases.
  • Comparative analysis using Milo on query data integrated with HLCA revealed significant changes in cell abundances in emphysema samples.
  • Model-based differential gene expression analysis using the scvi-hub framework identified disease-associated gene expression changes in fibroblasts more effectively than pseudobulk analysis.
  • Label infusion demonstrated the ability to refine cell-type annotations in reference datasets, leading to new insights into disease mechanisms.

Limitations and Future Work

  • The paper acknowledges that while data minification is efficient, it makes certain functions (e.g., those requiring reconstruction loss) non-executable.
  • The effectiveness of transfer learning is dependent on the suitability of the reference model for the query dataset, as highlighted by scvi.criticism results for tissues not well-represented in the reference.
  • Future work will likely involve expanding the repository of models, incorporating more data modalities, and further developing the evaluation and analysis tools within the scvi-hub framework to cater to an even wider range of use cases.

Summary updated

BibTeX
@inproceedings{ergen2024scvi,
  author = {Can Ergen and Valeh Valiollah Pour Amiri and Martin Kim and Aaron Streets and Adam Gayoso and Nir Yosef},
  title = {{scvi-hub: A flexible framework for reference enabled single-cell data analysis}},
  booktitle = {MLGenX @ ICLR},
  year = {2024},
  url = {https://openreview.net/forum?id=GmiGRQsYcl},
}
Figure