You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it appears to be a pointer to some python object, rather than an R integer vector as expected.
dummy_bool2 is much the same as dummy_int2 (except it is printed as a <BooleanArray> instead of <IntegerArray>).
dummy_category is a bit different from dummy_bool2 and dummy_int2 -- the reader simply skips over it with this warning:
Warning messages:
1: Conversion failed for the item dummy_category in uns with the following error and has been skipped
Conversion error message: "AttributeError: 'Categorical' object has no attribute 'get_values' "
and metadata(sce)$dummy_category is NULL.
Note that colData(sce)$dummy_num2 is correctly handled however -- there does not seem to be a problem with numeric vectors with missing values, only the factors/ints/logicals.
The text was updated successfully, but these errors were encountered:
jackkamm
changed the title
Problem reading nullable factor/bool/int in AnnData 0.8.0
Problem with missing values in AnnData 0.8.0
Mar 5, 2023
Thanks! This is probably because {reticulate} doesn't do any special conversion of those types and we may need to handle them specially (although I'm not entirely sure why...).
Followup to #86
For
krumsiek11_augmented_v0-8.h5ad
in that PR, when reading it in with the default Python reader:The following data, which contain missing values, are not properly read in:
colData(sce)$dummy_int2
colData(sce)$dummy_bool2
metadata(sce)$dummy_bool2
metadata(sce)$dummy_int2
metadata(sce)$dummy_category
For example, here is how one of those columns looks:
So it appears to be a pointer to some python object, rather than an R integer vector as expected.
dummy_bool2
is much the same asdummy_int2
(except it is printed as a<BooleanArray>
instead of<IntegerArray>
).dummy_category
is a bit different fromdummy_bool2
anddummy_int2
-- the reader simply skips over it with this warning:and
metadata(sce)$dummy_category
isNULL
.Note that
colData(sce)$dummy_num2
is correctly handled however -- there does not seem to be a problem with numeric vectors with missing values, only the factors/ints/logicals.The text was updated successfully, but these errors were encountered: