Skip to content

Validating encoded-ness state of AnnData object #815

Description

@eroell

Description of feature

This is not an ideal way of checking whether the adata has been encoded:

assert np.issubdtype(adata.X.dtype, np.number)

as we do not guarantee that ep.pp.encode will enforce this typing of the array.

Think about whether to

  • use a tag instead, e.g. stored in .uns
  • be more clear on the dtype .X is allowed to have.

The latter option might be more clean, and could be considered a subissue of consistent use with infer feature type and

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions