-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I get an AttributeError when calling explore_gamma_space caused by the fact that the code uses append on a dataframe, which is no longer supported. I think this is caused by scvi version 1.3.0 using a newer pandas version.
destvi_utils.explore_gamma_space(st_model, sc_model, ct_list=ct_list, ct_thresholds=ct_thresholds)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-30-ceebccb51f08>](https://localhost:8080/#) in <cell line: 0>()
----> 1 destvi_utils.explore_gamma_space(st_model, sc_model, ct_list=ct_list, ct_thresholds=ct_thresholds)
3 frames
[/usr/local/lib/python3.11/dist-packages/destvi_utils/_destvi_utils.py](https://localhost:8080/#) in explore_gamma_space(st_model, sc_model, st_adata, ct_thresholds, output_file, ct_list, key_proportions, key_spatial)
338 ranking = ranking[::-1]
339 gl = list(st_adata.var.index[ranking[:50]])
--> 340 enr = gseapy.enrichr(
341 gene_list=gl,
342 description="pathway",
[/usr/local/lib/python3.11/dist-packages/gseapy/enrichr.py](https://localhost:8080/#) in enrichr(gene_list, gene_sets, organism, description, outdir, background, cutoff, format, figsize, top_term, no_plot, verbose)
476 enr = Enrichr(gene_list, gene_sets, organism, description, outdir,
477 cutoff, background, format, figsize, top_term, no_plot, verbose)
--> 478 enr.run()
479
480 return enr
[/usr/local/lib/python3.11/dist-packages/gseapy/enrichr.py](https://localhost:8080/#) in run(self)
385 res.insert(0, "Gene_set", self._gs)
386 # Append to master dataframe
--> 387 self.results = self.results.append(res, ignore_index=True)
388 self.res2d = res
389 if self._outdir is None: continue
[/usr/local/lib/python3.11/dist-packages/pandas/core/generic.py](https://localhost:8080/#) in __getattr__(self, name)
6297 ):
6298 return self[name]
-> 6299 return object.__getattribute__(self, name)
6300
6301 @final
AttributeError: 'DataFrame' object has no attribute 'append'
Versions:
1.3.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working