junjunlab / ClusterGVis

One-step to Cluster and Visualize Gene Expression Matrix
MIT License
193 stars 16 forks source link

bug for wgcna$cluster_name #72

Open treblegaia opened 1 month ago

treblegaia commented 1 month ago

缺少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

junjunlab commented 1 month ago

给出你的解决代码,我会加进去

treblegaia commented 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 = ''))

junjunlab commented 1 month ago

代码已修改,请重新下载clusterGvis进行尝试。