Learn R Programming

SC3 (version 1.1.4)

calculate_distance: Calculate a distance matrix

Description

Distance between the cells, i.e. columns, in the input expression matrix are calculated using the Euclidean, Pearson and Spearman metrics to construct distance matrices.

Usage

calculate_distance(data, method)

Arguments

data
expression matrix
method
one of the distance metrics: "spearman", "pearson", "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski"

Value

distance matrix