Skip to main content

    Scanpy inputs and parameters

    Input format and every QC, feature-selection, clustering, and DE parameter for Scanpy.

    You provide one AnnData .h5ad file plus the parameters for your chosen workflow. The values that most affect the result are the QC cutoffs — minimum genes per cell, maximum mitochondrial percent, and the number of highly variable genes — because they decide which cells and genes survive into clustering. Everything else has a sensible default keyed to the GPU pipeline.

    Input format

    The platform's Scanpy job reads a single AnnData .h5ad file from storage. The URL must be an S3 URI (s3://…) or an HTTPS URL (https://…) and must end in .h5ad — the pipeline validates both.

    RequirementDetail
    FormatAnnData (.h5ad) only
    LocationS3 URI or HTTPS URL
    ContentsCells × genes count matrix in X, gene symbols in var

    If you have 10X Cell Ranger output, a CSV count matrix, or another format, convert it to .h5ad before submitting.

    Workflow selection

    ValueWhat runs
    full (default)QC → normalize → HVG → PCA → UMAP → Leiden → differential expression
    qcQuality control and filtering only
    clusteringQC through Leiden clustering + UMAP (no markers)
    deDifferential expression / marker genes

    The tool also exposes CPU-based extension workflows — harmony_integrate, scanorama_integrate, combat_correct (batch correction), celltypist_annotate (annotation), aucell_score, cosg_markers, hotspot_modules, cytotrace2_potency, scvelo_velocity. Batch-correction workflows require a batch_key naming the obs column with sample labels.

    Quality-control parameters

    ParameterRangeDefaultWhat it does
    min_genes1–5000200Drop cells with fewer detected genes (empty droplets)
    min_cells1–1003Drop genes seen in fewer cells
    max_genesintegernoneOptional upper bound (possible doublets)
    max_mito_percent0–505Drop cells above this mitochondrial fraction (dying cells)

    The platform defaults to a 5% mitochondrial cutoff — stricter than the 20% often seen in tutorials. Relax max_mito_percent if QC filters out too many cells (a common cause of an "empty after filtering" error).

    Feature selection and dimensionality reduction

    ParameterRangeDefaultWhat it does
    n_top_genes100–100002000Number of highly variable genes to keep
    hvg_flavorcell_ranger · seurat · seurat_v3seuratHVG selection method
    n_pcs2–10050Principal components for the neighbor graph
    n_neighbors2–10015Neighbors in the kNN graph

    Clustering and differential expression

    ParameterRangeDefaultWhat it does
    resolution0.1–2.01.0Cluster granularity — higher gives more, smaller clusters
    clustering_methodleiden · louvainleidenCommunity-detection algorithm
    methodwilcoxon · t-test · logregwilcoxonMarker-gene ranking test
    de_groupslistnoneRestrict DE to specific clusters

    Output options

    ParameterDefaultWhat it does
    generate_figurestrueProduce UMAP and violin plots
    figure_formatpngpng, pdf, or svg

    Was this page helpful?

    On this page

    On this page

    Loading...