Skip to contents

Convert an AnnData file (h5ad) to a Seurat object or an RDS/qs2 file

Usage

ConvertAnnDataToSeurat(infile, outfile = NULL, assay = "RNA", log = NULL)

Arguments

infile

Input file

outfile

Output file. If "NULL" (default) is given, a temporary file will be created and saved and the Seurat object will be read from it.

assay

Assay naem to save in the Seurat object

log

Logger

Value

The Seurat object if outfile is "", otherwise NULL.