Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Error when using de.test.wald():  #227

Description

@StHeindl

I am using diffxpy to calculate differential gene expression analysis, but every time the iteration for the calculation starts and is ended quickly with the same error. What could be the reason?

The code:

import diffxpy.api as de

Perform differential expression analysis

test_01 = de.test.wald(
data=adata_olig_2,
formula_loc="~ 1 + group",
factor_loc_totest="group",
gene_names=adata_olig.var_names,
sample_description=adata_olig.obs,
)

The error:
training location model: False
training scale model: True
iter 0: ll=56543949.613667
iter 1: ll=56543949.613667, converged: 0.00% (loc: 100.00%, scale update: False), in 0.00sec
Fitting 4000 dispersion models: (progress not available with multiprocessing)

BracketError: The algorithm terminated without finding a valid bracket. Consider trying different initial points.

Version information:
anndata 0.9.2
diffxpy v0.7.4
gseapy 1.0.6
numpy 1.24.4
pandas 1.5.3
scanpy 1.9.4
scipy 1.11.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions