scgen icon indicating copy to clipboard operation
scgen copied to clipboard

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

Open GGboy-Zzz opened this issue 7 months ago • 1 comments

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

GGboy-Zzz avatar Nov 20 '23 11:11 GGboy-Zzz