Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Roger-GOAT opened this issue Dec 11, 2022 · 3 comments

Comments

@Roger-GOAT
Copy link

你好,上次我以为是只出现在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]必需与陈列范围相等
@bfcui
Copy link

bfcui commented Apr 23, 2023

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

@wangdemo
Copy link

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

@1JYL123
Copy link

1JYL123 commented Jun 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants