Assigns a weighted importance score to each gene module based on which eigenvectors (and their eigenvalue weights) its member genes are loaded on. The module order is then re-indexed from most to least important.

RankGeneModules(gene_partition, gene_indicator, eigen_values)

Arguments

gene_partition

A named factor of cluster assignments (output of ClusterGenes()).

gene_indicator

A binary matrix (genes × eigenvectors) indicating significant gene loadings (output of SelectSignificantGenes()).

eigen_values

Numeric vector of eigenvalues corresponding to the columns of gene_indicator (e.g., RunSVD(P_diff)$values).

Value

A named integer factor of module assignments, re-ranked so that module 1 is the most important.

Examples

if (FALSE) {
gene_partition_ranked <- RankGeneModules(gene_partition, gene_indicator, evd$values)
}