Convert_Assay: Convert between Seurat Assay types

View source: R/Object_Conversion.R

Convert_AssayR Documentation

Convert between Seurat Assay types

Description

Will convert assays within a Seurat object between "Assay" and "Assay5" types.

Usage

Convert_Assay(seurat_object, assay = NULL, convert_to)

Arguments

seurat_object

Seurat object name.

assay

name(s) of assays to convert. Default is NULL and will check with users which assays they want to convert.

convert_to

value of what assay type to convert current assays to. #'

  • Accepted values for V3/4 are: "Assay", "assay", "V3", or "v3".

  • Accepted values for V5 are: "Assay5", "assay5", "V5", or "v5".

Examples

## Not run: 
# Convert to V3/4 assay
obj <- Convert_Assay(seurat_object = obj, convert_to = "V3")

# Convert to 5 assay
obj <- Convert_Assay(seurat_object = obj, convert_to = "V5")

## End(Not run)


samuel-marsh/scCustomize documentation built on Dec. 20, 2024, 7:41 a.m.