scanpy icon indicating copy to clipboard operation
scanpy copied to clipboard

Can't implicitly convert non-string objects to strings. Bug about tl.filter_rank_genes_groups and tl.rank_genes_groups

Open christophechu opened this issue 1 year ago • 1 comments

Please make sure these conditions are met

  • [X] I have checked that this issue has not already been reported.
  • [X] I have confirmed this bug exists on the latest version of scanpy.
  • [X] (optional) I have confirmed this bug exists on the master branch of scanpy.

What happened?

When I use sc.tl.filter_rank_genes_groups or sc.tl.filter_rank_genes_groups, I can not write the result file until I delete the output files stored as adata.uns['rank_genes_groups_filtered'] and adata.uns['rank_genes_groups']

Minimal code sample

sc.tl.filter_rank_genes_groups
sc.tl.filter_rank_genes_groups
Both default use

Error output

TypeError: Can't implicitly convert non-string objects to strings

Above error raised while writing key 'names' of <class 'h5py._hl.group.Group'> to /

Versions

anndata: 0.9.2 scanpy version: 1.9.5

christophechu avatar Sep 17 '23 08:09 christophechu

Hey @christophechu , can you please elaborate your concerns? Exactly, what were you trying to do ??

kcArtemis avatar Oct 13 '23 08:10 kcArtemis