Reads the pairwise gene Earth Mover's Distance matrix produced by the Python optimal-transport backend (see ComputeGeneEMD()) and deduplicates row/column names.

LoadGeneEMD(folder.path)

Arguments

folder.path

Character string. Path to the directory containing the emd.csv output file written by the Python backend.

Value

A square numeric matrix of gene–gene EMDs with gene names as row and column names, or NULL if the file cannot be loaded.

Examples

if (FALSE) {
gene.dist.mat <- LoadGeneEMD("results/emd/")
}