Extract the most highly co-expressed genes of each gene cluster.

top_genes(object, top = 20, fast = FALSE, distance_method = NULL)

Arguments

object

A ClusterSet object.

top

A value for the number of genes to select from each cluster.

fast

Use qlcMatrix::corSparse for pearson computation. Default to cor(). Default to FALSE for retro-compatibility.

distance_method

Overright the object distance_method (slot parameters$distance_method). Useful when object was created using cluster_set_from_matrix() for instance. One of c("kendall", "spearman", "cosine", "euclidean", "pearson") or NULL.

Value

A ClusterSet object.