pca_unfolded: Computes singular-value decomposition on the tensor unfolded...

View source: R/run_tucker_ica.R

pca_unfoldedR Documentation

Computes singular-value decomposition on the tensor unfolded along the donor dimension

Description

Computes singular-value decomposition on the tensor unfolded along the donor dimension

Usage

pca_unfolded(container, ranks)

Arguments

container

environment Project container that stores sub-containers for each cell type as well as results and plots from all analyses

ranks

numeric The number of factors to extract. Unlike with the Tucker decomposition, this should be a single number.

Value

The project container with results of the decomposition in container$tucker_results. The results object is a list with the donor scores matrix in the first element and the unfolded loadings matrix in the second element.

Examples

test_container <- pca_unfolded(test_container, 2)

scITD documentation built on Sept. 8, 2023, 5:11 p.m.