Learn R Programming

scITD (version 1.0.4)

pca_unfolded: 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)

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.

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.

Examples

Run this code
test_container <- pca_unfolded(test_container, 2)

Run the code above in your browser using DataLab