Skip to content

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

@christophechu

Description

@christophechu

Please make sure these conditions are met

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of scanpy.
  • (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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions