scPDAC#

Tests Documentation

scPDAC maps and annotates single-cell RNA-seq data against pancreatic ductal adenocarcinoma (PDAC) reference atlases. It ships pretrained models for human and mouse and turns a raw-count AnnData into an annotated, atlas-integrated one in a few lines — aligning your genes to each model’s panel automatically and writing predictions straight back into .obs.

Two workflows#

🧬 Atlas mapping — project a query into the reference SCANVI latent space and share an embedding with the atlas.

  • scpdac.tl.extend_atlas — scArches surgery; tolerates new batches and returns an expanded atlas with your query metadata intact.

  • scpdac.tl.embed_and_predict — fast, no-surgery embedding + label transfer.

    Atlas mapping tutorial

🏷️ Hierarchical annotation — label cells with a 3-model hierarchical MLP classifier.

  • scpdac.tl.predict_labels — splits Malignant vs Non-Malignant, then assigns fine-grained cell types with a dedicated sub-classifier per branch.

  • Runs on log-normalised expression and realigns to the training gene panel.

    Hierarchical classifier tutorial

Installation#

You need Python 3.11 or newer. If you don’t have Python, we recommend uv.

Install the latest development version:

pip install scpdac

Where to go next#

Citation#

If you use scPDAC in your research, please cite Lucarelli et al. [LPJimenez+26]:

Lucarelli D, Parikh S, Jiménez S, et al. Cross-species single-cell atlases chart progression, therapy-driven remodelling and immune evasion in pancreatic cancer. bioRxiv (2026). doi:10.64898/2026.03.19.712924

Getting help#

For questions, help requests, or to report a bug, please open an issue on the issue tracker.