Repository navigation
v0.5.2
Breaking changes
leidenalgis no longer installed by default. It is required by estimate_balancing_weight (called by fit_SCGLUE unlessskip_balance=True) and normalized_mutual_info, and can be installed viapip install scglue[leiden].- Renamed
calc_hypo_scoreto calc_hypo_ratio. - The
"majority"aggregation in aggregate_obs and aggregate_var now returns NaN when the top category accounts for less thanmajority_cutoff(default 0.6) of a group. Setmajority_cutoff=0to restore the previous behavior. - get_metacells now writes metacell assignments to
obs["metacell"]of the input datasets.
New features
- Added support for AnnCollection in configure_dataset and model training.
- Added support for dask arrays in model training and aggregate_obs.
- Added a
"join"aggregation method for discrete columns and amajority_cutoffoption in aggregate_obs and aggregate_var. - get_metacells now records the metacell each cell belongs to (Resolves #138).
Enhancements
- Moved configure_dataset to
scglue.data. It remains accessible asscglue.models.configure_dataset.
Bug fixes
- Fixed compatibility with recent versions of
anndataandpandas, including pandas 3 (Resolves #140). - Fixed aggregate_obs failing when the
bycolumn contains missing values. - Fixed
"majority"aggregation failing when all values in a group are missing.
Full Changelog: v0.4.1...v0.5.2