This function generates a network graph for a specific cluster based on the provided distance matrix. The opacity and length of the edges correspond to the given distance_metric (eg, kappa) score similarity between terms, which is based on shared gene content.
cluster_network(final_clusters, distance_matrix, cluster_number, merged_df)An interactive networkD3 network graph.
A dataframe containing the final cluster data.
A matrix representing the distances between terms.
An integer specifying the cluster number to visualize.
A dataframe with all terms used to map term indices to names.