Convert objects (Seurat & lists of Seurat Objects) to anndata objects
as.LIGER(x, ...)
# S3 method for Seurat
as.LIGER(
x,
group.by = "orig.ident",
layers_name = NULL,
assay = "RNA",
remove_missing = FALSE,
renormalize = TRUE,
use_seurat_var_genes = FALSE,
use_seurat_dimreduc = FALSE,
reduction = NULL,
keep_meta = TRUE,
verbose = TRUE,
...
)
# S3 method for list
as.LIGER(
x,
group.by = "orig.ident",
dataset_names = NULL,
assay = "RNA",
remove_missing = FALSE,
renormalize = TRUE,
use_seurat_var_genes = FALSE,
var_genes_method = "intersect",
keep_meta = TRUE,
verbose = TRUE,
...
)
An object to convert to class liger
Arguments passed to other methods
Variable in meta data which contains variable to split data by, (default is "orig.ident").
name of meta.data column used to split layers if setting group.by = "layers"
.
Assay containing raw data to use, (default is "RNA").
logical, whether to remove missing genes with no counts when converting to LIGER object (default is FALSE).
logical, whether to perform normalization after LIGER object creation (default is TRUE).
logical, whether to transfer variable features from Seurat object to new LIGER object (default is FALSE).
logical, whether to transfer dimensionality reduction coordinates from Seurat to new LIGER object (default is FALSE).
Name of Seurat reduction to transfer if use_seurat_dimreduc = TRUE
.
logical, whether to transfer columns in Seurat meta.data slot to LIGER cell.data slot (default is TRUE).
logical, whether to print status messages during object conversion (default is TRUE).
optional, vector of names to use for naming datasets.
how variable genes should be selected from Seurat objects if use_seurat_var_genes = TRUE
. Can be either "intersect" or "union", (default is "intersect").
a liger object generated from x
modified and enhanced version of rliger::seuratToLiger
.
if (FALSE) {
liger_object <- as.LIGER(x = seurat_object)
}
if (FALSE) {
liger_object <- as.LIGER(x = seurat_object_list)
}