We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unable to access X or var in the object.
X
var
Download pbmc_1k_protein_v3_processed.h5ad from here into ~/Downloads folder.
~/Downloads
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_data$var
Test X:
test_data$X
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)
print(test_data.var)
print(test_data.X)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Unable to access
X
orvar
in the object.Download pbmc_1k_protein_v3_processed.h5ad from here into
~/Downloads
folder.Example in R
Test all object elements except the two problem ones:
Test var:
Test X:
Example in Python
The text was updated successfully, but these errors were encountered: