Skip to contents

Unified function to run any multi-omics clustering algorithm.

Usage

run_integration(data, algorithm, n_clusters, ...)

Arguments

data

List of matrices (features x samples). All matrices must have the same samples (columns).

algorithm

Clustering algorithm name. Use list_clustering_algorithms() to see available options.

n_clusters

Number of clusters.

...

Additional arguments passed to specific algorithm.

Value

Data frame with sample IDs, cluster assignments, and cluster labels.

Examples

if (FALSE) { # \dontrun{
# Create example data
data1 <- matrix(rnorm(100 * 50), nrow = 100, ncol = 50)
data2 <- matrix(rnorm(80 * 50), nrow = 80, ncol = 50)
colnames(data1) <- colnames(data2) <- paste0("Sample", 1:50)

data_list <- list(GE = data1, ME = data2)

# Run SNF clustering
result <- run_integration(data_list, "SNF", n_clusters = 3)
} # }