Skip to content

Commit 9b8b8e1

Browse files
committed
Ignored Androgen and estrogen pathways
1 parent f80637c commit 9b8b8e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/cell_deconvolution.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2699,7 +2699,7 @@ prepare_multideconv_folds <- function(
26992699
#'
27002700
#' @export
27012701
deconvolution_dictionary = function(deconv_subgroups, pathway_matrix){
2702-
2702+
pathway_matrix = pathway_matrix[,!colnames(pathway_matrix)%in%c("Androgen", "Estrogen")]
27032703
cell_subgroups = deconv_subgroups[["Deconvolution subgroups per cell types"]]
27042704
cell_clusters = list()
27052705
i = 1
@@ -2719,6 +2719,7 @@ deconvolution_dictionary = function(deconv_subgroups, pathway_matrix){
27192719
#Identify the two global pathway clusters
27202720
silhouette = factoextra::fviz_nbclust(as.matrix(t(global_x[[1]])), factoextra::hcut, method = "silhouette", k.max = attr(d_global, "Size")-1)
27212721
k_cluster = as.numeric(silhouette$data$clusters[which.max(silhouette$data$y)])
2722+
27222723
clusters_global <- stats::cutree(dendrogram_global, k = k_cluster)
27232724
clusters_global <- split(names(clusters_global), clusters_global)
27242725
names(clusters_global) <- paste0("Cluster_", seq_along(clusters_global))

0 commit comments

Comments
 (0)