Learn R Programming

SC3 (version 1.1.4)

transformation: Distance matrix transformation

Description

All distance matrices are transformed using either principal component analysis (PCA), multidimensional scaling (MDS) or by calculating the eigenvectors of the graph Laplacian (Spectral). The columns of the resulting matrices are then sorted in descending order by their corresponding eigenvalues.

Usage

transformation(dists, method)

Arguments

dists
distance matrix
method
transformation method: either "pca", "mds", "spectral" or "spectral_reg", where "spectral_reg" calculates graph Laplacian with regularization (tau = 1000)

Value

transformed distance matrix