Calculates the pairwise distance between genes in an expression matrix using various metrics.
CalculateGeneDistance(dat, method)
matrix; the expression data with genes as rows and cells as columns.
character; the metric for measuring gene-gene distance. Possible values are "pearson", "euclidean", "KL", "jaccard", and "spearman".
"pearson": Calculates Pearson correlation distance (1 - correlation).
"euclidean": Calculates Euclidean distance.
"KL": Calculates Kullback-Leibler divergence.
"jaccard": Calculates Jaccard distance.
"spearman": Calculates Spearman correlation distance (1 - correlation).
A distance object representing the pairwise distances between genes.