Release notes

v0.5.2

Breaking changes:

  • leidenalg is no longer installed by default. It is required by estimate_balancing_weight (called by fit_SCGLUE unless skip_balance=True) and normalized_mutual_info, and can be installed via pip install scglue[leiden].

  • Renamed calc_hypo_score to calc_hypo_ratio.

  • The "majority" aggregation in aggregate_obs and aggregate_var now returns NaN when the top category accounts for less than majority_cutoff (default 0.6) of a group. Set majority_cutoff=0 to restore the previous behavior.

  • get_metacells now writes metacell assignments to obs["metacell"] of the input datasets.

New features:

Enhancements:

  • Moved configure_dataset to scglue.data. It remains accessible as scglue.models.configure_dataset.

Bug fixes:

  • Fixed compatibility with recent versions of anndata and pandas, including pandas 3 (Resolves #140).

  • Fixed aggregate_obs failing when the by column contains missing values.

  • Fixed "majority" aggregation failing when all values in a group are missing.

v0.4.0

Bug fixes:

  • Fixed compatibility with latest version of anndata.

  • Fixed trainers when “use_cell_type” is used, see this PR.

  • Allowed CUDA_VISIBLE_DEVICES to override autodevice.

New features:

  • A general anchored guidance graph construction function anchored_guidance_graph.

  • Add function classify_data to retrieve the cell type classification from compatible models.

  • Add support for CITE-seq data via NBMixture, see this PR.

  • Add preliminary support for region-based ATAC-Methyl integration.

  • Added skip_balance option for fit_SCGLUE`.

v0.3.2

Bug fixes:

v0.3.1

Bug fixes:

v0.3.0

New features:

  • New tutorial and functions for regulatory inference (Resolves #15, #41).

  • New tutorial for training on partially paired data (Resolves #24).

Enhancements:

v0.2.3

Minor improvements and bug fixes

Bug fixes:

  • Data frame in obsm no longer triggers an error during model training (Resolves #32).

Enhancements:

v0.2.2

Minor improvements and bug fixes

Bug fixes:

  • Device detection is now more reliable (Resolves #17).

Enhancements:

  • Custom encoders and decoders can now be registered without changing package code (Resolves #14).

v0.2.1

Minor improvements and dependency fixes

v0.2.0

New features:

  • Added fit_SCGLUE function to simplify model training - Incorporates weighted adversarial alignment by default, with increased robustness on datasets with highly-skewed cell type compositions

  • Added support for batch effect correction, which can be activated by setting use_batch in configure_dataset

  • Added a model diagnostics metric “integration consistency score”

Enhancements:

  • Support for training directly on disk-backed AnnData objects, scaling to almost infinite number of cells

Bug fixes:

  • Fixed a bug where the graph dataset was not shuffled across epochs

Experimental features:

v0.1.1

First public release