Open treblegaia opened 1 month ago
给出你的解决代码,我会加进去
给出你的解决代码,我会加进去 https://github.com/junjunlab/ClusterGVis/blob/6585fa76889bb9e3cccd04408a2a4933885e1347/R/clusterData.R#L262
df$cluster_name <- factor(df$cluster_name,levels = paste("cluster ",1:nrow(cl.info), " (",cl.info$Freq," ",unique(df$modulecol),")",sep = ''))
代码已修改,请重新下载clusterGvis进行尝试。
缺少modulecol导致因子水平不匹配:
tmp %>% dplyr::mutate(cluster_name = paste(cluster_name," (",cltn[cn]," ",unique(tmp$modulecol),")",sep = ''))
df$cluster_name <- factor(df$cluster_name,levels = paste("cluster ",1:nrow(cl.info), " (",cl.info$Freq,")",sep = ''))
https://github.com/junjunlab/ClusterGVis/blob/main/R/clusterData.R