Single Cell Atlasing Toolbox ๐Ÿงฐ

June 17, 2026 ยท View on GitHub

Documentation Tests

Toolbox of Snakemake pipelines for easy-to-use analyses and benchmarks for building integrated atlases

This toolbox provides multiple modules that can be easily combined into custom workflows that leverage the file management of Snakemake. This allows for an efficient and scalable way to run analyses on large datasets that can be easily configured by the user.

Getting started

Please refer to the documentation.

๐Ÿงฐ Which Modules does the Toolbox Support?

The modules are located under workflow/ and can be run independently or combined into a more complex workflow.

Click to expand the full list of modules
ModuleDescription
load_dataLoading datasets from URLs and converting them to AnnData objects
explorationExploration and quality control of datasets
batch_analysisExploration and quality control of batches within datasets
qcSemi-automated quality control of datasets using sctk AutoQC
doubletsIdentifying and handling doublets in datasets
mergeMerging datasets
filterFiltering datasets based on specified criteria
subsetCreating subsets of datasets
relabelRelabeling data points in datasets
split_dataSplitting datasets into training and testing sets
preprocessingPreprocessing of datasets (normalization, feature selection, PCA, kNN graph, UMAP)
integrationRunning single cell batch correction methods on datasets
metricsCalculating scIB metrics, mainly for benchmarking of integration methods
clusteringMulti-resolution and hierarchical clustering of datasets
label_harmonizationProviding alignment between unharmonized labels using CellHint
label_transferTransfer annotations of annotated cells to unannotated cells
majority_votingConsensus voting across multiple cell type assignments
celltype_predictionPredict cell types from reference model e.g. celltypist
reference_mappingMap query datasets to reference atlases
marker_genesIdentify marker genes for cell types
collectCollect multiple input anndata objects into a single anndata object
uncollectDistribute slots of an anndata object to multiple anndata objects
commonCommon utilities and helper functions for workflows

๐Ÿ‘€ TL;DR What does a full workflow look like?

The heart of the configuration is captured in a YAML (or JSON) configuration file. Here is an example of a workflow configuration in configs/example_config.yaml containing the preprocessing, integration and metrics modules:

output_dir: data/out
images: images

os: intel
use_gpu: true

DATASETS:

  my_dataset: # custom task/workflow name

    # input specification: map of module name to map of input file name to input file path
    input:
      preprocessing:
        file_1: data/pbmc68k.h5ad
        # file_2: ... # more files if required
      integration: preprocessing # all outputs of module will automatically be used as input
      metrics: integration
    
    # module configuration
    preprocessing:
      highly_variable_genes:
        n_top_genes: 2000
      pca:
        n_comps: 50
      assemble:
        - normalize
        - highly_variable_genes
        - pca
    
    # module configuration
    integration:
      raw_counts: raw/X
      norm_counts: X
      batch: batch
      methods:
        unintegrated:
        scanorama:
          batch_size: 100
        scvi:
          max_epochs: 10
          early_stopping: true

    # module configuration
    metrics:
      unintegrated: layers/norm_counts
      batch: batch
      label: bulk_labels
      metrics:
        - nmi
        - graph_connectivity

Which allows you to call the pipeline as follows:

snakemake --configfile configs/example_config.yaml --snakefile workflow/Snakefile --use-conda -nq

giving you the following dryrun output:

Job stats:
job                                    count
-----------------------------------  -------
integration_all                            1
integration_barplot_per_dataset            3
integration_benchmark_per_dataset          1
integration_compute_umap                   6
integration_plot_umap                      6
integration_postprocess                    6
integration_prepare                        1
integration_run_method                     3
preprocessing_assemble                     1
preprocessing_highly_variable_genes        1
preprocessing_normalize                    1
preprocessing_pca                          1
total                                     31

Reasons:
    (check individual jobs above for details)
    input files updated by another job:
        integration_all, integration_barplot_per_dataset, integration_benchmark_per_dataset, integration_compute_umap, integration_plot_umap, integration_postprocess, integration_prepare, integra[...]
    missing output files:
        integration_benchmark_per_dataset, integration_compute_umap, integration_postprocess, integration_prepare, integration_run_method, preprocessing_assemble, preprocessing_highly_variable_ge[...]

This was a dry-run (flag -n). The order of jobs does not reflect the order of execution.

๐Ÿ’– Beautiful, right? Chek out the documentation to learn how to set up your own workflow!

Release notes

See the changelog.

Contact

If you found a bug, please use the issue tracker.

Citation

t.b.a