View source: R/classConversion.R
ligerToSeurat | R Documentation |
For converting a liger object to a Seurat object, the
rawData
, normData
, and scaleData
from each dataset,
the cellMeta
, H.norm
and varFeatures
slot will be
included. Compatible with V4 and V5. It is not recommended to use this
conversion if your liger object contains datasets from
various modalities.
ligerToSeurat(
object,
assay = NULL,
identByDataset = FALSE,
merge = FALSE,
nms = NULL,
renormalize = NULL,
use.liger.genes = NULL,
by.dataset = identByDataset
)
Always returns Seurat object(s) of the latest version. By default a
Seurat object with split layers, e.g. with layers like "counts.ctrl" and
"counts.stim". If merge = TRUE
, return a single Seurat object with
layers for all datasets merged.
if (requireNamespace("SeuratObject", quietly = TRUE) &&
requireNamespace("Seurat", quietly = TRUE)) {
seu <- ligerToSeurat(pbmc)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.