Run the Tucker decomposition and rotate the factors
run_tucker_ica(
container,
ranks,
tucker_type = "regular",
rotation_type = "hybrid"
)
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.
environment Project container that stores sub-containers for each cell type as well as results and plots from all analyses
numeric The number of donor factors and gene factors, respectively, to decompose the data into. Since we rearrange the standard output of the Tucker decomposition to be 'donor centric', the number of donor factors will also be the total number of main factors that can be used for downstream analysis. The number of gene factors will only impact the quality of the decomposition.
character The 'regular' type is the only one currently implemented
character Set to 'hybrid' to optimize loadings via our hybrid method (see paper for details). Set to 'ica_dsc' to perform ICA rotation on resulting donor factor matrix. Set to 'ica_lds' to optimize loadings by the ICA rotation. (default='hybrid')
test_container <- run_tucker_ica(test_container,ranks=c(2,4))
Run the code above in your browser using DataLab