API reference#

Use this page as the routing layer for the public API. The main question should be easy to answer quickly:

What it is#

Status: stable and experimental.

This index is the navigation page for the public API contract. Stable and experimental surfaces are documented separately so users can see the current scope without guessing.

When to use it#

Use this page when you need to answer one of these quickly:

  • which entrypoint should I start with?

  • where is the workflow tutorial for that entrypoint?

  • where is the parameter and return contract for that API?

Minimal example#

Stable beginner route:

import scanpy as sc
from scdlkit import TaskRunner

adata = sc.datasets.pbmc3k_processed()
runner = TaskRunner(model="vae", task="representation", label_key="louvain")
runner.fit(adata)

Experimental beginner route:

from scdlkit import adapt_annotation

runner = adapt_annotation(adata, label_key="cell_type")

Parameters#

Input expectations#

  • stable baseline pages assume processed AnnData and bundled models

  • experimental annotation pages assume labeled human scRNA-seq and the scGPT whole-human checkpoint

  • lower-level pages assume you are comfortable managing model and data objects more explicitly

Returns / outputs#

  • TaskRunner and adapt_annotation(...) are the highest-level routes and return fitted workflow objects

  • lower-level pages document datasets, raw prediction dictionaries, and wrapped modules in more detail

Failure modes / raises#

  • stable pages call out model/task mismatches and missing AnnData columns

  • experimental pages call out foundation-extra installation, label requirements, and checkpoint-compatibility failures

  • lower-level pages call out task-contract and data-contract errors explicitly

Notes / caveats#

  • TaskRunner remains the stable beginner path.

  • adapt_annotation(...) is the easiest experimental annotation path.

  • scdlkit.foundation remains the lower-level experimental surface underneath the beginner alias.

Start here#

High-level stable workflow#

Related tutorial:

Experimental beginner annotation#

Related tutorial:

Low-level stable workflow#

Extension surfaces#

Evaluation and reports#

Built-in models#