View source: R/example_anndata.R
example_anndata | R Documentation |
anndata
anndata R package has a major bug currently.
Thus, add_filename
must be kept False
until this is fixed.
example_anndata(
obj = SeuratObject::pbmc_small,
save_path = file.path(tempdir(), "example.h5ad"),
backed = "r",
verbose = TRUE
)
backed |
If |
#### Setup conda env ####
## Option 1: Point to where anndata is installed (or should be installed)
conda_dir <- dirname(dirname(reticulate::conda_list()[1,]$python))
reticulate::use_condaenv(condaenv = conda_dir)
reticulate::conda_install(conda = conda_dir, packages = "loompy", pip = T)
## Option 2: Just run anndata::install_anndata() and will install via miniconda
anndata::install_anndata(method = "conda", conda=conda_dir)
#### Usage ####
adata <- example_anndata()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.