Unable to access X or var in the object.
Download pbmc_1k_protein_v3_processed.h5ad from here into ~/Downloads folder.
Example in R
library(anndata)
test_data <- read_h5ad("~/Downloads/pbmc_1k_protein_v3_processed.h5ad")
test_data

names_v <- names(test_data)
names_v

Test all object elements except the two problem ones:
objs_ls <- list()
badNames_v <- c("var", "X")
for (i in 1:length(names_v)) {
currName_v <- names_v[i]
cat(currName_v, "\n")
if (currName_v %in% badNames_v) next
objs_ls[[currName_v]] <- test_data[[currName_v]]
}
Test var:

Test X:

Example in Python
import anndata as ad
test_path = "/Users/hortowe/Downloads/pbmc_1k_protein_v3_processed.h5ad"
test_data = ad.read_h5ad(test_path)
print(test_data)



Unable to access
Xorvarin the object.Download pbmc_1k_protein_v3_processed.h5ad from here into
~/Downloadsfolder.Example in R
Test all object elements except the two problem ones:
Test var:
Test X:
Example in Python