Skip to content

Error in findICF - 'result_cells' not found #1229

@daniannr

Description

@daniannr

Hi there, I keep getting an error in findICF that looks like this:

> ICGscoresHighGenes = findICF(gobject = g, selected_feats = high_expressed_genes,
                         spatial_network_name = 'Delaunay_network', 
                         cluster_column = 'full_12062025',
                         diff_test = 'wilcox', 
                         adjust_method = 'fdr', 
                         nr_permutations = 2, 
                         do_parallel = FALSE)
Error in .findCellProximityFeats_per_interaction(expr_values = expr_values,  : 
  object 'result_cells' not found

My complete code here:
findICF_code.txt

Session info:

> sessionInfo()
R version 4.4.3 (2025-02-28)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.1 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so;  LAPACK version 3.12.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Etc/UTC
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] BPCells_0.3.0      lubridate_1.9.4    forcats_1.0.0      stringr_1.5.1     
 [5] dplyr_1.1.4        purrr_1.0.4        readr_2.1.5        tidyr_1.3.1       
 [9] tibble_3.3.0       tidyverse_2.0.0    ggplot2_3.5.2      Seurat_5.3.0      
[13] SeuratObject_5.1.0 sp_2.2-0           Giotto_4.2.2       GiottoClass_0.4.8 

loaded via a namespace (and not attached):
  [1] RcppAnnoy_0.0.22         splines_4.4.3            later_1.4.1             
  [4] polyclip_1.10-7          fastDummies_1.7.5        lifecycle_1.0.4         
  [7] globals_0.18.0           lattice_0.22-6           MASS_7.3-64             
 [10] backports_1.5.0          magrittr_2.0.3           plotly_4.11.0           
 [13] httpuv_1.6.15            sctransform_0.4.2        spam_2.11-1             
 [16] spatstat.sparse_3.1-0    reticulate_1.42.0        cowplot_1.1.3           
 [19] pbapply_1.7-2            RColorBrewer_1.1-3       abind_1.4-8             
 [22] zlibbioc_1.52.0          Rtsne_0.17               GenomicRanges_1.58.0    
 [25] ggraph_2.2.1             BiocGenerics_0.52.0      tweenr_2.0.3            
 [28] rappdirs_0.3.3           GenomeInfoDbData_1.2.13  IRanges_2.40.1          
 [31] S4Vectors_0.44.0         ggrepel_0.9.6            irlba_2.3.5.1           
 [34] listenv_0.9.1            spatstat.utils_3.1-2     terra_1.8-29            
 [37] goftest_1.2-3            RSpectra_0.16-2          spatstat.random_3.3-2   
 [40] fitdistrplus_1.2-2       parallelly_1.45.0        colorRamp2_0.1.0        
 [43] codetools_0.2-20         DelayedArray_0.32.0      ggforce_0.5.0           
 [46] tidyselect_1.2.1         UCSC.utils_1.2.0         farver_2.1.2            
 [49] viridis_0.6.5            matrixStats_1.5.0        stats4_4.4.3            
 [52] spatstat.explore_3.3-4   jsonlite_2.0.0           BiocNeighbors_2.0.1     
 [55] tidygraph_1.3.1          progressr_0.15.1         ggridges_0.5.6          
 [58] survival_3.8-3           tools_4.4.3              ica_1.0-3               
 [61] Rcpp_1.0.14              glue_1.8.0               gridExtra_2.3           
 [64] SparseArray_1.6.2        MatrixGenerics_1.18.1    GenomeInfoDb_1.42.3     
 [67] withr_3.0.2              fastmap_1.2.0            bluster_1.16.0          
 [70] digest_0.6.37            timechange_0.3.0         R6_2.6.1                
 [73] mime_0.12                colorspace_2.1-1         scattermore_1.2         
 [76] gtools_3.9.5             tensor_1.5               dichromat_2.0-0.1       
 [79] spatstat.data_3.1-4      generics_0.1.4           data.table_1.17.6       
 [82] graphlayouts_1.2.2       httr_1.4.7               htmlwidgets_1.6.4       
 [85] S4Arrays_1.6.0           uwot_0.2.3               pkgconfig_2.0.3         
 [88] gtable_0.3.6             lmtest_0.9-40            GiottoVisuals_0.2.12    
 [91] XVector_0.46.0           htmltools_0.5.8.1        dotCall64_1.2           
 [94] scales_1.4.0             GiottoUtils_0.2.5        png_0.1-8               
 [97] spatstat.univar_3.1-1    tzdb_0.5.0               reshape2_1.4.4          
[100] checkmate_2.3.2          nlme_3.1-167             cachem_1.1.0            
[103] zoo_1.8-13               KernSmooth_2.23-26       parallel_4.4.3          
[106] miniUI_0.1.1.1           pillar_1.10.2            grid_4.4.3              
[109] vctrs_0.6.5              RANN_2.6.2               promises_1.3.2          
[112] xtable_1.8-4             cluster_2.1.8            cli_3.6.5               
[115] compiler_4.4.3           rlang_1.1.6              crayon_1.5.3            
[118] future.apply_1.20.0      labeling_0.4.3           plyr_1.8.9              
[121] stringi_1.8.7            viridisLite_0.4.2        deldir_2.0-4            
[124] BiocParallel_1.40.2      lazyeval_0.2.2           spatstat.geom_3.3-5     
[127] Matrix_1.7-2             RcppHNSW_0.6.0           hms_1.1.3               
[130] patchwork_1.3.1          sparseMatrixStats_1.18.0 future_1.58.0           
[133] shiny_1.10.0             ROCR_1.0-11              igraph_2.1.4            
[136] memoise_2.0.1           

Hope you can help soon. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions