-
Notifications
You must be signed in to change notification settings - Fork 889
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
IntegrateData error: Error in idx[i, ] <- res[[i]][[1]] : #3930
Comments
It is generally okay to decrease those parameters if you have to. You can think of |
Hi, I am getting the same error message upon integration and I understand from this post that smoothing parameter can be modified. Thanks in advance for your help! |
Hello,
and how it is related to the smoothing parameter. Thank you. |
Hi, I'm having a similar issue. When I subset and reintegrate I get the same error after running IntegrateData(): Merging dataset 9 into 14 My code is below - my smallest dataset to be integrated contains 169 cells and after running FindIntegrationAnchors(), I checked back through the output and the lowest number of anchors found was 90, so I set the k.weight parameter to =89 as suggested in #4427 This is my code: #Features #Run PCA #Integration everything runs fine until the IntegrateData() step. Can anyone suggest what may be wrong? Original workflow comes from the Faster Intergration Using RPCA vignette (https://satijalab.org/seurat/articles/integration_rpca.html) Thank you! |
Hi @keggleigh, |
Hi, |
I also experienced the same issue as mentioned by @keggleigh. In my case, the minimum sample size is 69, and I set |
I often re-integrate data, meaning, taking a subset and re-integrate based on orig.ident. It really works well and yields biologically meaningful information. However, sometimes when cell count of a sample (orig.ident) is smaller than 200 I have to adjust the k.filter, otherwise it won't run. I understand this makes it less reliable, but it seems to work.
Now here is my problem: It appears now if some of the samples (orig.ident) are smaller than 100 it throws this error when running IntegrateData
Merging dataset 2 into 1
Extracting anchors for merged samples
Finding integration vectors
Finding integration vector weights
Error in idx[i, ] <- res[[i]][[1]] :
number of items to replace is not a multiple of replacement length
I can "solve" this by decreasing the k.weight to the number of cells of the sample with the lowest cell count. However; I'm very unsure about what this k.weight actually does.
So I'm not even sure if the error it throws is really a bug, or just a warning that I'm using a sample with too low a cell count.
So is it ok for me to lower the k weight and k filter?
thank you
Nicolaas
sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=Dutch_Belgium.1252 LC_CTYPE=Dutch_Belgium.1252
[3] LC_MONETARY=Dutch_Belgium.1252 LC_NUMERIC=C
[5] LC_TIME=Dutch_Belgium.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] patchwork_1.1.1 RColorBrewer_1.1-2 ggplot2_3.3.3
[4] Seurat_3.9.9.9024 dplyr_1.0.2
loaded via a namespace (and not attached):
[1] nlme_3.1-149 matrixStats_0.57.0 RcppAnnoy_0.0.18
[4] httr_1.4.2 sctransform_0.3.2 tools_4.0.3
[7] R6_2.5.0 irlba_2.3.3 rpart_4.1-15
[10] KernSmooth_2.23-17 uwot_0.1.10 lazyeval_0.2.2
[13] mgcv_1.8-33 colorspace_2.0-0 withr_2.3.0
[16] tidyselect_1.1.0 gridExtra_2.3 compiler_4.0.3
[19] plotly_4.9.2.2 labeling_0.4.2 scales_1.1.1
[22] lmtest_0.9-38 spatstat.data_1.7-0 ggridges_0.5.2
[25] pbapply_1.4-3 spatstat_1.64-1 goftest_1.2-2
[28] stringr_1.4.0 digest_0.6.27 spatstat.utils_1.17-0
[31] pkgconfig_2.0.3 htmltools_0.5.0 parallelly_1.23.0
[34] fastmap_1.0.1 htmlwidgets_1.5.3 rlang_0.4.10
[37] shiny_1.5.0 farver_2.0.3 generics_0.1.0
[40] zoo_1.8-8 jsonlite_1.7.2 ica_1.0-2
[43] magrittr_2.0.1 Matrix_1.2-18 Rcpp_1.0.5
[46] munsell_0.5.0 abind_1.4-5 reticulate_1.18
[49] lifecycle_0.2.0 stringi_1.5.3 MASS_7.3-53
[52] Rtsne_0.15 plyr_1.8.6 grid_4.0.3
[55] parallel_4.0.3 listenv_0.8.0 promises_1.1.1
[58] ggrepel_0.9.0 crayon_1.3.4 miniUI_0.1.1.1
[61] deldir_0.2-3 lattice_0.20-41 cowplot_1.1.1
[64] splines_4.0.3 tensor_1.5 pillar_1.4.7
[67] igraph_1.2.6 future.apply_1.7.0 reshape2_1.4.4
[70] codetools_0.2-16 leiden_0.3.6 glue_1.4.2
[73] data.table_1.13.6 png_0.1-7 vctrs_0.3.6
[76] httpuv_1.5.4 gtable_0.3.0 RANN_2.6.1
[79] purrr_0.3.4 polyclip_1.10-0 tidyr_1.1.2
[82] scattermore_0.7 future_1.21.0 rsvd_1.0.3
[85] mime_0.9 xtable_1.8-4 RSpectra_0.16-0
[88] later_1.1.0.1 survival_3.2-7 viridisLite_0.3.0
[91] tibble_3.0.4 cluster_2.1.0 globals_0.14.0
[94] fitdistrplus_1.1-3 ellipsis_0.3.1 ROCR_1.0-11
The text was updated successfully, but these errors were encountered: