-
Notifications
You must be signed in to change notification settings - Fork 140
function netEmbedding is unable to work #167
Comments
add info: |
@QueenieBear Can you please run the source codes of |
I have the same questions with QueenieBear |
I read the pull request
error is as follows
how can I define 'comparison'? |
I have solved the problem by the following source code in the pull request。
|
@lxwang326 's code got me past the same I took the liberty of wrapping these fixed functions in a script. Just change the extension from Consider this a stopgap? Oh, and some of these functions might throw errors btw. I hastily edited this to get my analysis running again. |
The fix above work for me. Note that the fixed file ("CellChat_issue167_netClusteringFix.txt") has two occurrences of GiGj that should be Gi + Gj. |
For me the solution provided by @lxwang326 works after changing |
The fix above work for me, too. Also note that the fixed file ("CellChat_issue167_netClusteringFix.txt") has two occurrences of i1 that should be i + 1. |
@sqjin
I am working on CellChat-vignette in your tutorial.
when I run
cellchat <- netEmbedding(cellchat, type = "functional")
, it reportsError in runUMAP(Similarity, min.dist = 0.3, n.neighbors = k) : Cannot find UMAP, please install through pip (e.g. pip install umap-learn or reticulate::py_install(packages = 'umap-learn')).
then I find this tutorial to install umap-learn via annaconda(I have tried
pip3
installumap-learn
,and it reportssuccessfully installed
,but still can not work in R when it comes tocellchat <- netEmbedding(cellchat, type = "functional")
)https://hbctraining.github.io/scRNA-seq/lessons/umap-installation.html
conda install -c conda-forge umap-learn
also successfully done.then I run
library(reticulate) use_python(python = "~/Anaconda3/bin/python", required = TRUE) cellchat <- netEmbedding(cellchat, type = "functional")
and there is no error, but a warning
Manifold learning of the signaling networks for a single dataset /Users/yanni_zong/anaconda3/lib/python3.8/site-packages/umap/umap_.py:132: UserWarning: A large number of your vertices were disconnected from the manifold. Disconnection_distance = 1 has removed 142 edges. It has fully disconnected 3 vertices. You might consider using find_disconnected_points() to find and remove these points from your data. Use umap.utils.disconnected_vertices() to identify them. warn(
However, when I run the next line
cellchat <- netClustering(cellchat, type = "functional")
,it showsClassification learning of the signaling networks for a single dataset Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)
here is the my session infomation
`R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] reticulate_1.18 ggalluvial_0.12.3 NMF_0.23.0 cluster_2.1.1
[5] rngtools_1.5 pkgmaker_0.32.2 registry_0.5-1 patchwork_1.1.1
[9] CellChat_1.0.0 ggplot2_3.3.3 igraph_1.2.6 dplyr_1.0.5
[13] Biobase_2.50.0 BiocGenerics_0.36.0
loaded via a namespace (and not attached):
[1] colorspace_2.0-0 rjson_0.2.20 ellipsis_0.3.1 rprojroot_2.0.2
[5] circlize_0.4.12 GlobalOptions_0.1.2 fs_1.5.0 clue_0.3-58
[9] listenv_0.8.0 remotes_2.2.0 ggrepel_0.9.1 RSpectra_0.16-0
[13] fansi_0.4.2 codetools_0.2-18 doParallel_1.0.16 cachem_1.0.4
[17] knitr_1.31 pkgload_1.2.0 jsonlite_1.7.2 Cairo_1.5-12.2
[21] gridBase_0.4-7 png_0.1-7 BiocManager_1.30.10 compiler_4.0.3
[25] assertthat_0.2.1 Matrix_1.3-2 fastmap_1.1.0 cli_2.3.1
[29] prettyunits_1.1.1 tools_4.0.3 coda_0.19-4 gtable_0.3.0
[33] glue_1.4.2 reshape2_1.4.4 tinytex_0.30 Rcpp_1.0.6
[37] rle_0.9.2 statnet.common_4.4.1 vctrs_0.3.6 svglite_2.0.0
[41] iterators_1.0.13 xfun_0.21 stringr_1.4.0 globals_0.14.0
[45] ps_1.6.0 network_1.16.1 testthat_3.0.2 lifecycle_1.0.0
[49] irlba_2.3.3 devtools_2.3.2 future_1.21.0 scales_1.1.1
[53] gg.gap_1.3 RColorBrewer_1.1-2 ComplexHeatmap_2.6.2 memoise_2.0.0
[57] pbapply_1.4-3 stringi_1.5.3 S4Vectors_0.28.1 desc_1.3.0
[61] foreach_1.5.1 pkgbuild_1.2.0 shape_1.4.5 rlang_0.4.10
[65] pkgconfig_2.0.3 systemfonts_1.0.1 matrixStats_0.58.0 lattice_0.20-41
[69] purrr_0.3.4 cowplot_1.1.1 tidyselect_1.1.0 processx_3.4.5
[73] parallelly_1.24.0 plyr_1.8.6 magrittr_2.0.1 R6_2.5.0
[77] IRanges_2.24.1 generics_0.1.0 sna_2.6 DBI_1.1.1
[81] pillar_1.5.1 withr_2.4.1 tibble_3.1.0 future.apply_1.7.0
[85] crayon_1.4.1 utf8_1.2.1 GetoptLong_1.0.5 usethis_2.0.1
[89] grid_4.0.3 FNN_1.1.3 callr_3.5.1 digest_0.6.27
[93] xtable_1.8-4 stats4_4.0.3 munsell_0.5.0 sessioninfo_1.1.1 `
what can I do next?😭
The text was updated successfully, but these errors were encountered: