Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for categorical columns with NA #7

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

votti
Copy link

@votti votti commented Sep 1, 2023

Anndata (eg 0.7.8) exports categorical colums with NA with a value -1, causing the reading of mudata/anndata to fail (#6 ).

This adds support for reading categorical columns with NAs.

The convert_categoricals function is added as an internal function in order to facilitate testing of this logic.

Fixes: #6

Anndata 0.7.8 exports categories with NA with a value -1,
causing the reading of mudata/anndata to fail.

This adds support for NAs.
The convert_categoricals function is added as an internal function
in order to facilitate testing of this logic.

Fixes: ilia-kats#6
@ilia-kats
Copy link
Owner

Looks good to me, thanks. CI is failing because of an issue in the Matrix package, so I'm merging this.

@ilia-kats ilia-kats merged commit c998c8e into ilia-kats:master Sep 8, 2023
0 of 3 checks passed
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.

NaN in categorical column fails reading
2 participants