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
[x] I have performed a self-review of my code
Check the correct box. Does this PR contain:
[ ] Breaking changes
[ ] New functionality
[ ] Major changes
[ ] Minor changes
[x] Bug fixes
[ ] Proposed changes are described in the CHANGELOG.md
[x] CI Tests succeed and look good!
Requirements after merging
[ ] Need to regenerate common/ resources
[ ] Need to regenerate task-specific resources. Specify: <all or ...>
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
[x] I have performed a self-review of my code
Check the correct box. Does this PR contain:
[ ] Proposed changes are described in the CHANGELOG.md
[x] CI Tests succeed and look good!
Requirements after merging
[ ] Need to regenerate
common/
resources[ ] Need to regenerate task-specific resources. Specify: <all or ...>