wrapper function to convert Seurat Object to a AnnData .h5ad file
convertSeuratToH5ad.Rd
convertSeuratToH5ad
is a wrapper function to convert a given Seurat Object into an AnnData object (for use in python with e.g. scanpy) and write out into a .h5ad file.
Arguments
- SeuratObj
Seurat Object
- assays
A vector of assay names from SeuratObj to be exported
- h5ad_filename
Filename of the output .h5ad file. Note that the final output filenames will have the assay names appended to this (see examples).
- conda_env
character, if not
NULL
this named conda environment is used. (Default: 'scicsr'). IfNULL
, no conda environment will be used, the program assumes the python packagesscanpy
andscvelo
are installed in the local python)