Skip to content

Fixes for compatibility with anndata>=0.12.0#305

Merged
rcannood merged 7 commits into
mainfrom
anndata-0.12-fixes
Jul 31, 2025
Merged

Fixes for compatibility with anndata>=0.12.0#305
rcannood merged 7 commits into
mainfrom
anndata-0.12-fixes

Conversation

@lazappi
Copy link
Copy Markdown
Collaborator

@lazappi lazappi commented Jul 31, 2025

Related to: Fixes #304

Description

Minor changes for compatibility with anndata>=0.12.0 (see scverse/anndata#2052):

  • Unpin the version of anndata used for tests to test against latest version
  • Add a read_h5ad_null() helper function
  • Add a write_h5ad_null() helper function
    • Setting option(anndataR.write_null = FALSE) disables writing NULL values for compatibility with reading using anndata<0.12.0
  • Fix a bug in write_h5ad_string_array() where values were not transposed correctly
  • Properly conserve dimensions in read_h5ad_dense_array()
  • Remove workarounds and skipping of none values in roundtrip tests

Checklist

Before review

  • Update and regenerate man pages
  • Add/update tests
  • Add/update examples in vignettes
  • Pass CI checks

Before merge

  • Update NEWS
  • Bump devel version

@lazappi lazappi requested review from LouiseDck and rcannood July 31, 2025 08:48
Copy link
Copy Markdown
Member

@rcannood rcannood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rcannood rcannood merged commit e801da3 into main Jul 31, 2025
6 checks passed
@rcannood rcannood deleted the anndata-0.12-fixes branch July 31, 2025 12:02
@lazappi
Copy link
Copy Markdown
Collaborator Author

lazappi commented Aug 1, 2025

I still needed to updated the NEWS/version 😿. I'll do it separately.

@lazappi lazappi mentioned this pull request Aug 1, 2025
6 tasks
lazappi added a commit that referenced this pull request Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reading h5ad file with no X

2 participants