## Not run:
# data("tcgaov")
# tcgaov[1:5,1:6, with = FALSE]
# Y <- log(tcgaov[["OS"]])
# E <- tcgaov[["E"]]
# genes <- as.matrix(tcgaov[,-c("OS","rn","subtype","E","status"),with = FALSE])
# trainIndex <- drop(caret::createDataPartition(Y, p = 1, list = FALSE, times = 1))
# testIndex <- setdiff(seq_len(length(Y)),trainIndex)
#
# cluster_res <- r_cluster_data(data = genes,
# response = Y,
# exposure = E,
# train_index = trainIndex,
# test_index = testIndex,
# cluster_distance = "tom",
# eclust_distance = "difftom",
# measure_distance = "euclidean",
# clustMethod = "hclust",
# cutMethod = "dynamic",
# method = "average",
# nPC = 1,
# minimum_cluster_size = 60)
#
# class(cluster_res)
#
# plot(cluster_res, show_column_names = FALSE)
# ## End(Not run)
Run the code above in your browser using DataLab