openproblems-bio / openproblems-v2

Formalizing and benchmarking open problems in single-cell genomics
MIT License
56 stars 19 forks source link

FIx dataset simulator #431

Closed sainirmayi closed 5 months ago

sainirmayi commented 5 months ago

Describe your changes

While merging the simulated spatial data with the original anndata object, NA values are introduced in .obs slots. In this case, due to NA values in columns with booleans, a TypeError is raised while writing the anndata objects to files. The current version of anndata being used does not implicitly convert non-string objects to strings while writing to files, thereby raising a TypeError. This PR is a temporary solution to fix this issue. The conversion is implicitly handled in later versions of anndata (0.10).

Issue ticket number and link

Closes #xxxx (Replace xxxx with the GitHub issue number)

Checklist before requesting a review

Requirements after merging