theislab / scgen

Single cell perturbation prediction

Home Page:https://scgen.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update depreciated `AnnData.concatenate`

quentinblampey opened this issue · comments

Hello,

The depreciated method AnnData.concatenate is used when running batch_removal (see here).

This only throws a warning with anndata==0.9 and pandas<2.0, but it crashes when using pandas==2.0.

I downgraded to pandas==1.5.2 and it works fine, but it could be great to use anndata.concat instead of AnnData.concatenate, as it would fix the bug for pandas==2.0!

Oh I wanted to make a pull request for this, but I just shown this open PR (#77) that tries to solve this

It would be nice to have the exact version of all modules.