list_to_dimreduc: Convert: list ==> 'DimReducObject'

View source: R/list_to_dimreduc.R

list_to_dimreducR Documentation

Convert: list ==> DimReducObject

Description

Create a Seurat DimReducObject from embeddings and loadings.

Usage

list_to_dimreduc(obj, assay, key, ...)

Arguments

obj

A named list containing:

  • obsm : Sample embeddings

  • varm : Feature loadings

  • stdev : Standard deviation (if applicable) for the dimensional reduction

assay

Assay to use.

key

Key to use (name of embedding).

...

Arguments passed on to SeuratObject::CreateDimReducObject

embeddings

A matrix with the cell embeddings

loadings

A matrix with the feature loadings

projected

A matrix with the projected feature loadings

stdev

Standard deviation (if applicable) for the dimensional reduction

global

Specify this as a global reduction (useful for visualizations)

jackstraw

Results from the JackStraw function

misc

list for the user to store any additional information associated with the dimensional reduction


bschilder/scKirby documentation built on Oct. 2, 2024, 10:16 p.m.