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

请问使用rowsplit的示例数据可以解释一下34和45这个几个数字是怎么得出的嘛? #58

Open
Clapton9527 opened this issue Oct 27, 2024 · 1 comment

Comments

@Clapton9527
Copy link

Clapton9527 commented Oct 27, 2024

你好!非常感谢你开发了这么好用的包!我在使用averageHeatmap的时候遇到了问题,我查看了实例教程
split rows and columns

AverageHeatmap(object = pbmc,
markerGene = markers$gene,
column_split = 1:9,
row_split = paste("cluster",markers$cluster,sep = ' ')[c(1:30,31:34,36:45)],
border = T)

column_split已经理解,是按照列数进行分割,但是row_split没有完全看懂,请问45是因为一共9个column,每个column有5个gene,然后第7个column只展示31-34个gene。请问这么理解正确嘛?
我在运行我的代码的时候:
scRNAtoolVis::AverageHeatmap(object= Epi_filter,
markerGene = top5$gene,
annoCol = T,
myanCol = mycolors,
border = T,
column_split = 0:19,
row_split = paste("cluster",top5$cluster,sep = ' ')[c(1:100)],
)
Error: Length or nrow of row_split should be same as nrow of matrix.
nrow(top5)
[1] 100
产生了报错,我查看了我的top5确实有100行,想请教一下您这个问题!

@junjunlab
Copy link
Owner

好像是基因有重复名称来着,才做了这个调整

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

2 participants