Skip to main content

Deep learning annotation of cell-types with permutation inforced autoencoder

Project description

scMusketeers : A tri-partite modular autoencoder for addressing imbalanced cell type annotation and batch effect reduction

Summary

We developed scMusketeer, a modular deep learning model producing an optimal dimension-reduced representation with a focus on imbalanced cell type annotation and batch effect reduction. The architecture of scMusketeers is made of three modules. The first module is an autoencoder which provides a reduced latent representation, while removing noise, thus resulting in a better data reconstruction. The second module, is a classifier with a focal loss providing higher prediction for smaller populations of cell types. The third module is an adversarial domain adaptation (DANN) module that corrects batch effect.

scMusketeers performance was optimized after conducting a precise ablation study to assess model's hyperparameters. The model was compared to reference tools for single-cell integration and annotation. It was at least on par with state-of-the-art models, often outperforming most of them. It showed increased performance on the identification of rare cell types. Despite the rather simple structure of its deep learning model, it demonstrated equivalent performance to UCE foundation model. Finally, scMusketeers was able to transfer the cell label from single-cell RNA-Seq to spatial transcriptomics.

Our tripartite modular autoencoder demonstrates versatile capabilities while addressing key challenges in single-cell atlas reconstruction. We noticed in particular that the generic modular framework of scMusketeers should be easily generalized to other large-scale biology projects that require deep learning models.

Tutorial

Access to the tutorial on Google collab

We will see in this tutorial two use-cases:

  • Transfer cell annotation to unlabeled cells
  • Transfer cell annotation and reduce batch from a query atlas to a reference atlas

Install

You can install sc_musketeers with Pypi:

$ pip install sc-musketeers

with conda

$ conda -c bioconda sc-musketeers

with docker

Examples

sc-musketeers can be used for different task in integration and annotation of single-cell atlas.

Here are 2 different examples:

  • Transfer cell annotation to unlabeled cells
$ sc-musketeers transfer my_atlas --class_key celltype --batch_key donor --unlabeled_category=Unknown
  • Transfer cell annotation and reduce batch from a query atlas to a reference atlas
$ sc-musketeers transfer ref_dataset --query_path query_dataset --class_key=celltype --batch_key donor --unlabeled_category=Unknown

TO DO : Add example atlas in the github or Zenodo

Read the CONTRIBUTING.md file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc_musketeers-0.1.17.tar.gz (94.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sc_musketeers-0.1.17-py3-none-any.whl (105.9 kB view details)

Uploaded Python 3

File details

Details for the file sc_musketeers-0.1.17.tar.gz.

File metadata

  • Download URL: sc_musketeers-0.1.17.tar.gz
  • Upload date:
  • Size: 94.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sc_musketeers-0.1.17.tar.gz
Algorithm Hash digest
SHA256 11bf8f2455a4f627d8b639bec9bd4ea1abd92fbb6cf8767935804e3938f430ca
MD5 dff3e4ac64b4cc58cce33014c7c4ebb5
BLAKE2b-256 c25b910239777b8f386b67db7510cf15ceb6658f8fd8b1dab28dd243db46deae

See more details on using hashes here.

File details

Details for the file sc_musketeers-0.1.17-py3-none-any.whl.

File metadata

  • Download URL: sc_musketeers-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 105.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sc_musketeers-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b8cd085f596804e8ca78b5644e3ea0ce4212f31b9146d76ec549323cbb0f61
MD5 71543c5a5d386c56324fe375996bd053
BLAKE2b-256 344604e3db08c6c86a5526facb8bef957dc9ce1ad164001421646430a6e8328c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page