Skip to content

Error in network.batch_removal() due to missing positional argument in AnnData.concatenate() #83

@macelik

Description

@macelik

Hello,

I'm encountering an issue while using scgen for batch correction. The training part works fine, but I'm facing an error when calling network.batch_removal(). The error message is as follows:

Traceback (most recent call last): File "/work/project/ladcol_011/polish/community-paper/src/data_preprocessing/vanGalen_Hourigan/./quick.py", line 281, in <module> adata_afterCorrection = network.batch_removal() File "/work/project/ladcol_011/conda_path/miniconda3/envs/scgen-env/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/work/project/ladcol_011/conda_path/miniconda3/envs/scgen-env/lib/python3.10/site-packages/scgen/_scgen.py", line 268, in batch_removal all_shared_ann = AnnData.concatenate( TypeError: AnnData.concatenate() missing 1 required positional argument: 'self'

I have attempted to resolve this issue by trying different versions of Python (3.7 and 3.10) as well as different versions of anndata (0.8, 0.9, and 0.9.1). Additionally, I have tested solutions mentioned in previous issues, such as using pandas==1.5.2. I have also tried the pull request that aims to address this problem (#77), but unfortunately, none of these attempts have been successful.

I would greatly appreciate any assistance you can provide.

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