Skip to content

Instantly share code, notes, and snippets.

@grimbough
Created April 24, 2023 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grimbough/99d7cc9578ea32fa41ba44cca7bee6ad to your computer and use it in GitHub Desktop.
Save grimbough/99d7cc9578ea32fa41ba44cca7bee6ad to your computer and use it in GitHub Desktop.
Example of reading anndata nullable with rhdf5
library(rhdf5)
packageVersion("rhdf5")
#> [1] '2.43.6'
h5File <- system.file("testfiles", "nullable_examples.h5", package = "rhdf5")
h5read(h5File, name = "nullable_boolean")
#> [1] TRUE FALSE NA
h5read(h5File, name = "nullable_integer")
#> [1] 1 NA 3 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment