Skip to content

TypeError: Can't instantiate abstract class SCGEN with abstract methods setup_anndata #91

@GGboy-Zzz

Description

@GGboy-Zzz

I have been trying to merge multiple single cell data using scgen recently, but when I tried to run the tutorial, an error occurred,as follows,

TypeError Traceback (most recent call last)
in
1 scgen.SCGEN.setup_anndata(train, batch_key="batch", labels_key="cell_type")
----> 2 model = scgen.SCGEN(train)
3 model.save("/home/zhuyong/test_scgen/saved_models/model_batch_removal.pt", overwrite=True)

TypeError: Can't instantiate abstract class SCGEN with abstract methods setup_anndata
I referred to issue #53 #54 etc and confirmed that my scvi-tools version is 0.14.0. I even reinstalled version 0.13.0, but it still doesn't work. Do you have any good suggestions? @adamgayoso @M0hammadL

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