sctk#
sctk is a Jupyter-first toolkit for reproducible single-cell transcriptomics
analysis. It provides small, explicit helpers around AnnData, Scanpy, PyDESeq2,
Harmony, scVI, LIANA, and selected R/Bioconductor methods.
Start here#
Follow Installation and environments and select the
Python (sctk)Jupyter kernel.Read Data model and conventions before modifying
.Xor creating layers.Run QC and preprocessing.
Continue with the topic guide that matches the analysis: expression and annotation, pseudobulk differential expression, integration, or cell-cell communication.
Use the API reference while writing notebooks.
The quickstart notebook is a short executable example. The single-cell workflow is a longer analysis case study with saved outputs.
Analysis principles#
Preserve raw integer counts in
adata.layers["counts"].Keep normalized expression in a separate layer such as
"log1p_norm".Review QC decisions before removing cells.
Treat biological samples—not cells—as replicates for differential expression.
Evaluate batch correction for both mixing and biological conservation.
Treat marker-based labels and ligand-receptor predictions as hypotheses that require biological review.
Keep optional Python and R backends lazy so core workflows remain importable.
Current scope#
The implemented package covers single-cell QC, preprocessing, clustering, expression summaries, marker scoring, pseudobulk DE, enrichment, integration, cell-cell communication, plotting, scDblFinder, SoupX, and limma-voom.
AnnData helpers may also be useful for spatial transcriptomics objects, but a dedicated spatial-analysis module is not yet part of the public API.
Where results are written#
Operation |
Result |
|---|---|
QC |
|
Normalization |
|
PCA/integration |
|
Neighbors |
|
Clustering/annotation |
|
LIANA |
|
Pseudobulk |
a new AnnData object |
DE/enrichment |
pandas DataFrames |
For behavior that differs from the old scripts, see the migration map.