scRNAtoolVis icon indicating copy to clipboard operation
scRNAtoolVis copied to clipboard

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

Open Roger-GOAT opened this issue 1 year ago • 2 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]必需与陈列范围相等

Roger-GOAT avatar Dec 11 '22 03:12 Roger-GOAT

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

bfcui avatar Apr 23 '23 14:04 bfcui

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

wangdemo avatar May 12 '24 14:05 wangdemo