scRNAtoolVis icon indicating copy to clipboard operation
scRNAtoolVis copied to clipboard

Error in dimnames(x) <- dn : 'dimnames'的长度[2]必需与陈列范围相等(不是gsea结果也发生)

Open TangentDeng opened this issue 3 years ago • 3 comments

你好,上次我以为是只出现在IrGSEA结果,现在发现全部seurat都是如此。。

heatmap_gene <- c("Snhg9", "Ecm1")

 DotPlot(sce,features = heatmap_gene,assay = 'RNA',group.by = 'celltype',cols = 'Spectral')+
  theme(axis.text.x = element_text(angle = 45, vjust = 1, hjust=1))+
  labs(title = "Markers of cell type")+
  theme(plot.title = element_text(hjust = 0.5)) (可以正常出图)


AverageHeatmap(object = sce,group.by = 'celltype',assays = 'RNA',slot = 'data',
               markerGene = heatmap_gene)

Error in dimnames(x) <- dn : 'dimnames'的长度[2]必需与陈列范围相等

TangentDeng avatar Dec 11 '22 03:12 TangentDeng

老哥问题解决了吗,我也遇到这个问题。 我简单摸索了一下,问题可能出在group.by这个参数下

bfcui avatar Apr 23 '23 14:04 bfcui

就是group.by参数的问题,AverageHeatmap和DotPlot的group.by参数值好像不同

wangdemo avatar May 12 '24 14:05 wangdemo

我也遇到这个问题了,可以试一下0.0.3版本或0.0.4版本,这两个版本的group.by参数是可以用的

1JYL123 avatar Jun 20 '24 06:06 1JYL123