MapQuery error in Seurat referen

2021-12-19  本文已影响0人  7f0a92cda77c

运行MapQuery函数遇到的问题:

 MapQuery(anchorset = anchors, reference = merged_cjj_lsj, query =data_zxt, refdata = merged_cjj_lsj$cell_type, reference.reduction = "pca", reduction.model = "umap")
Error in check_graph(graph, n_vertices, n_neighbors) : 
  ncol(idx) == expected_cols is not TRUE
遇到的问题
在GitHub上搜到的回答者:yuhanH
理解是这个包对应的uwot版本需要更改下就可以了

解决方法:重新更换这个版本的包,然后再重新启动Rstudio就可以了。This bug is fixed in seurat 4.0.6-from yuhanH

devtools::install_version("uwot", version = "0.1.10", repos = "http://cran.us.r-project.org")
上一篇下一篇

猜你喜欢

热点阅读