Skip to content

Conversation

@josh-gree
Copy link

@josh-gree josh-gree commented Jan 27, 2026

Fixes #17

  • Update run_anndata_setup to accept Optional[str] for layer parameter
  • Modify DataHandlerAnnData and DataProviderAnnData to handle layer=None
  • Update evaluation functions (MAD and EMD) to support layer=None
  • Add comprehensive tests for layer=None functionality

When layer=None is passed, the library now uses adata.X instead of requiring a named layer, improving memory efficiency and following AnnData conventions.

P.S full disclosure this is claude not really me - it seems about right but I don't have full understanding of the lib!

Fixes TarikExner#17

- Update run_anndata_setup to accept Optional[str] for layer parameter
- Modify DataHandlerAnnData and DataProviderAnnData to handle layer=None
- Update evaluation functions (MAD and EMD) to support layer=None
- Add comprehensive tests for layer=None functionality

When layer=None is passed, the library now uses adata.X instead of
requiring a named layer, improving memory efficiency and following
AnnData conventions.
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.

Question: Support for using AnnData.X directly?

1 participant