theislab / diffxpy

Differential expression analysis for single-cell RNA-seq data.
https://diffxpy.rtfd.io
BSD 3-Clause "New" or "Revised" License
193 stars 23 forks source link

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

Open SteffiHMuc opened 1 year ago

SteffiHMuc commented 1 year ago

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

mason-sweat1 commented 11 months ago

I had the same error. Was there any solution for this?

errepeAxel commented 8 months ago

Hi, I had the same error. Did you find any solution? Thanks in advance :)

lf96abc commented 5 months ago

Hi, has any solution been found?