Skip to content

Allow custom label_key for scib-metrics in scvi.autotune #3647

@catheriz

Description

@catheriz

Is your feature request related to a problem? Please describe.
When using scvi.autotune.run_autotune with scIB metrics for multi-modal integration, I cannot specify which .obs columns should be used as labels for autotune with scib-metrics. The autotune framework only uses the model's internally registered labels fields from the data manager. setup_mudata does not support labels_key, so label-dependent scib metrics cannot access biologically meaningful labels like tissue or cell type that exist in my data but were not registered during model setup. This makes it impossible to tune hyperparameters using tissue-aware integration quality metrics, even though those labels are available in the dataset.

Describe the solution you'd like
I would like scvi.autotune.run_autotune and AutotuneExperiment to accept optional scib_label_key parameters or allow me to use label in the setup process

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions