This function converts a Seurat object and associated Velocyto loom files into a single loom file that integrates both spliced and unspliced RNA matrices. It is part of an older workflow and is soft deprecated in favor of `scVelo.SeuratToAnndata`. However, it is preserved for reproducibility of earlier work that cited its use.

scVelo.SeuratToLoom(
  seu,
  export.name,
  velocyto.loom.path = NULL,
  velocyto.loom.filenames,
  fxn.convert.loomtoseurat.cellname = NULL,
  cell.id.match.table = NULL,
  prefix = NULL,
  postfix = NULL
)

scVelo.RunBasic(loom, save.adata = "adata.obj")

Arguments

seu

Seurat object containing single-cell RNA sequencing data.

export.name

Name of the resulting loom file to be created.

velocyto.loom.path

Directory containing the Velocyto loom files; defaults to the current working directory. Default: getwd()

velocyto.loom.filenames

Filenames of Velocyto output (loom files) that contain spliced and unspliced RNA data.

fxn.convert.loomtoseurat.cellname

(Experimental) Function to convert cell names in Velocyto loom files to Seurat object cell names, if they differ.

prefix

Optional prefix added to Seurat cell IDs, typically used to include sample names. Default: NULL

postfix

Optional postfix added to Seurat cell IDs, typically used to denote unique identifiers such as '-1'. Default: NULL

loom

Path to the loom file created by `scVelo.SeuratToLoom`.

save.adata

Name and path where the AnnData object should be saved, typically ending in '.h5ad'. Default: 'adata.obj'

Value

Generates a loom file that integrates Seurat and Velocyto data, stored in the specified export path.

Details

This set of functions supports the transition from Seurat objects to an integrated loom file via `scVelo.SeuratToLoom`, and from loom files to AnnData objects via `scVelo.RunBasic`, ready for basic to advanced scVelo analysis in Python. This older method is preserved for compatibility with previous studies and publications, ensuring reproducibility of earlier work. This older method is preserved for compatibility with previous studies and publications, but users are encouraged to transition to `scVelo.SeuratToAnndata` for a more streamlined and updated approach that directly integrates Seurat objects with scVelo analysis in Python's Scanpy library.

See also

scVelo.SeuratToAnndata for the recommended method of preparing data for scVelo analysis.