Skip to content

heiniglab/plaque-atlas-mapping

Repository files navigation

Plaque scRNAseq Dataset Annotation

This repository contains a script to automatically annotate plaque scRNAseq datasets using our atlas (https://www.nature.com/articles/s41467-025-63202-x).

How to Use

Install Necessary Packages

Python:

  • gdown (5.2.0)
  • scanpy (1.9.6)
  • scarches (0.5.10)
  • anndata (0.10.3)
  • numpy (1.23.4)
  • pandas (2.2.1)
  • matplotlib (3.8.2)
  • scipy (1.11.4)
  • rpy2 (3.5.14)
  • anndata2ri (1.3.1)

R:

  • scran (1.30.0)

Download Necessary Files

Run the following command:

python download.py

Run Script

Use the following command to use the level 1 annotations (recommended):

python automatic_mapping_level1.py <filename> <lognorm> <celltype> <ensembleIDs>

or level 2 annotations:

python automatic_mapping_level2.py <filename> <lognorm> <celltype> <ensembleIDs>

Where:

  • <filename>: Path to the h5ad object you want to map. Make sure you have a obs["sample"] to indicate the donor/sample the cell is coming from.
  • <lognorm>: Specify if your counts are log-normalized (true/false)
  • <celltype>: Specify if your object has a "cell_type_level2" (or "cell_type_level1") column filled with "unknown" (true/false)
  • <ensembleIDs>: Specify if your varnames are ensemblIDs (true/false)

We recommend inputting the counts after cells are removed with QC and using ensemblIDs if possible. If you only have gene names, the script attempts to map the gene names to ensemblIDs using a mapping used in our atlas.

Example

We provide an example file that we used for validation in the publication:

python automatic_mapping_level1.py example_data/Hu_subset.h5ad false false true

Note: Because it contains a large number of cells (37k), the normalization step will take some time. You will also need a Nvidia GPU (CUDA) to run the script.

Other options

Alternatively, we provide a Docker image with all packages installed and files downloaded at: https://github.com/matmu/plaque-atlas-mapping_docker.

We also offer a fully automated solution in an interactive web framework at: https://www.archmap.bio/#/genemapper/create. To use the tool, select “Plaque” as the atlas and “scPoli” as the model. The platform will then provide detailed instructions for uploading and preparing data for annotation. (we are currently updating it to the new version)

Citation

If you use this resource, please cite our paper:

Traeuble, K., Munz, M., Pauli, J. et al. Integrated single-cell atlas of human atherosclerotic plaques. Nat Commun 16, 8255 (2025). https://doi.org/10.1038/s41467-025-63202-x

BibTeX

@article{Traeuble2025,
  title = {Integrated single-cell atlas of human atherosclerotic plaques},
  volume = {16},
  ISSN = {2041-1723},
  url = {http://dx.doi.org/10.1038/s41467-025-63202-x},
  DOI = {10.1038/s41467-025-63202-x},
  number = {1},
  journal = {Nature Communications},
  publisher = {Springer Science and Business Media LLC},
  author = {Traeuble,  Korbinian and Munz,  Matthias and Pauli,  Jessica and Sachs,  Nadja and Vafadarnejad,  Eshan and Carrillo-Roa,  Tania and Maegdefessel,  Lars and Kastner,  Peter and Heinig,  Matthias},
  year = {2025},
  month = sep 
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages