Learn R Programming

richCluster (version 1.0.2)

runRichCluster: Run clustering in C++ backend

Description

Run clustering in C++ backend

Usage

runRichCluster(
  terms,
  geneIDs,
  distanceMetric,
  distanceCutoff,
  linkageMethod,
  linkageCutoff
)

Value

A list containing the clustering results with the following components:

distance_matrix

A numeric matrix containing pairwise distances between terms based on gene similarity

all_clusters

A data frame with columns 'Cluster' (cluster ID) and 'TermIndices' (comma-separated indices of terms in each cluster)

linkage_tree

The hierarchical clustering dendrogram structure from the agglomerative clustering process

Arguments

terms

Character vector of term names

geneIDs

Character vector of geneIDs

distanceMetric

e.g. "kappa"

distanceCutoff

numeric between 0 and 1

linkageMethod

e.g. "average"

linkageCutoff

numeric between 0 and 1