---
title: "pydeseq2 0.7.0 Breaking Changes on PyPI | Since.dev"
description: "What each pydeseq2 release removed, renamed or changed: 37 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pydeseq2
last_updated: 2026-12-04
---

# pydeseq2 breaking changes

pydeseq2 0.7.0 (November 25, 2026) is its newest release with breaking changes, 13 of them. The first: Removed pydeseq2.distributions.grid_fit_shrink_beta. Every breaking API change we have recorded in pydeseq2 on PyPI: 37 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.7.0`, released November 25, 2026. [Source repository](https://github.com/scverse/PyDESeq2)

Its 0.6.0 release requires [Python 3.12](https://since.dev/calendar/python/3.12.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.6.0](#v-0-6-0) to [0.7.0](#v-0-7-0): 13 breaking changes in 1 version.

## pydeseq2 0.7.0 breaking changes

pydeseq2 0.7.0, released November 25, 2026: 13 breaking changes.

- **Removed** `pydeseq2.distributions.grid_fit_shrink_beta`  

pydeseq2.distributions.grid_fit_shrink_beta was removed in pydeseq2 0.7.0 [pypi.org](https://pypi.org/project/pydeseq2/0.7.0/)
- **Behavior changed** `deseq2`  

Iterative size factors differ by up to 0.1%, and p-values, LFCs and Cook's filtering change for genes with diverging coefficients. Expect small numeric differences in existing results. [github.com](https://github.com/scverse/PyDESeq2/releases/tag/v0.7.0)
- **Behavior changed** `deseq2_norm_transform`  

A sample with no positive count or a NaN count among the fitted genes now gets a NaN size factor from deseq2_norm_transform. Handle NaN size factors in downstream code. [github.com](https://github.com/scverse/PyDESeq2/releases/tag/v0.7.0)
- **Behavior changed** `DeseqDataSet`  

Building a DeseqDataSet with duplicated gene names now raises a ValueError instead of failing later in deseq2(). Make gene names unique before building the dataset. [github.com](https://github.com/scverse/PyDESeq2/releases/tag/v0.7.0)
- **Behavior changed** `lfc_shrink`  

lfc_shrink() without coeff now raises a ValueError when the contrast involves several coefficients or has a weight other than 1 on its coefficient. Set the reference level in the design instead. [github.com](https://github.com/scverse/PyDESeq2/releases/tag/v0.7.0)
- **Signature changed** `pydeseq2.dds.DeseqDataSet.__init__`  

Was def \_\_init\_\_(self, \*, adata: ad.AnnData | None = None, counts: pd.DataFrame | None = None, metadata: pd.DataFrame | None = None, design: str | pd.DataFrame = '\~condition', design_factors: str | list\[str\] | None = None... [pypi.org](https://pypi.org/project/pydeseq2/0.7.0/)
- **Signature changed** `pydeseq2.dds.DeseqDataSet.deseq2`  

Was def deseq2(self, fit_type: Literal\['parametric', 'mean'\] | None = None) -> None; now def deseq2(self, fit_type: Literal\['parametric', 'mean', 'local'\] | None = None) -> None. [pypi.org](https://pypi.org/project/pydeseq2/0.7.0/)
- **Signature changed** `pydeseq2.dds.DeseqDataSet.vst`  

Was def vst(self, use_design: bool = False, fit_type: Literal\['parametric', 'mean'\] | None = None) -> None; now def vst(self, use_design: bool = False, fit_type: Literal\['parametric', 'mean', 'local'\] | None = None) -> None. [pypi.org](https://pypi.org/project/pydeseq2/0.7.0/)
- **Signature changed** `pydeseq2.ds.DeseqDataSet.__init__`  

Was def \_\_init\_\_(self, \*, adata: ad.AnnData | None = None, counts: pd.DataFrame | None = None, metadata: pd.DataFrame | None = None, design: str | pd.DataFrame = '\~condition', design_factors: str | list\[str\] | None = None... [pypi.org](https://pypi.org/project/pydeseq2/0.7.0/)
- **Signature changed** `pydeseq2.ds.DeseqDataSet.deseq2`  

Was def deseq2(self, fit_type: Literal\['parametric', 'mean'\] | None = None) -> None; now def deseq2(self, fit_type: Literal\['parametric', 'mean', 'local'\] | None = None) -> None. [pypi.org](https://pypi.org/project/pydeseq2/0.7.0/)
- **Signature changed** `pydeseq2.ds.DeseqDataSet.vst`  

Was def vst(self, use_design: bool = False, fit_type: Literal\['parametric', 'mean'\] | None = None) -> None; now def vst(self, use_design: bool = False, fit_type: Literal\['parametric', 'mean', 'local'\] | None = None) -> None. [pypi.org](https://pypi.org/project/pydeseq2/0.7.0/)
- **Signature changed** `pydeseq2.ds.DeseqStats.__init__`  

Was def \_\_init\_\_(self, dds: DeseqDataSet, contrast: list\[str\] | np.ndarray, alpha: float = 0.05, cooks_filter: bool = True, independent_filter: bool = True, prior_LFC_var: np.ndarray | None = None, lfc_null: float = 0.0, alt_hypothesis... [pypi.org](https://pypi.org/project/pydeseq2/0.7.0/)
- **Signature changed** `pydeseq2.ds.DeseqStats.lfc_shrink`  

Was def lfc_shrink(self, coeff: str, adapt: bool = True) -> None; now def lfc_shrink(self, coeff: str | None = None, adapt: bool = True) -> None. [pypi.org](https://pypi.org/project/pydeseq2/0.7.0/)

## pydeseq2 0.6.0 breaking changes

pydeseq2 0.6.0, released November 15, 2026: 24 breaking changes.

- **Removed** `pydeseq2.default_inference.utils`  

pydeseq2.default_inference.utils was removed in pydeseq2 0.6.0 [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)
- **Removed** `pydeseq2.utils`  

pydeseq2.utils was removed in pydeseq2 0.6.0 [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)
- **Renamed** `pydeseq2.utils.grid_fit_alpha`  

Use pydeseq2.dispersions.grid_fit_alpha instead. [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)
- **Renamed** `pydeseq2.utils.grid_fit_beta`  

Use pydeseq2.glm.grid_fit_beta instead. [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)
- **Renamed** `pydeseq2.utils.load_example_data`  

Use pydeseq2.datasets.load_example_data instead. [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)
- **Renamed** `pydeseq2.utils.lowess`  

Use pydeseq2.stats.lowess instead. [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)
- **Renamed** `pydeseq2.utils.mean_absolute_deviation`  

Use pydeseq2.stats.mean_absolute_deviation instead. [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)
- **Renamed** `pydeseq2.utils.nbinomFn`  

Use pydeseq2.distributions.nbinomFn instead. [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)
- **Renamed** `pydeseq2.utils.robust_method_of_moments_disp`  

Use pydeseq2.dispersions.robust_method_of_moments_disp instead. [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)
- **Renamed** `pydeseq2.utils.test_valid_counts`  

Use pydeseq2.misc.test_valid_counts instead. [pypi.org](https://pypi.org/project/pydeseq2/0.6.0/)

And 14 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
