运行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")
网友评论