smorabit / hdWGCNA

High dimensional weighted gene co-expression network analysis
https://smorabit.github.io/hdWGCNA/
Other
316 stars 31 forks source link

Issue Creating Metacells #168

Closed Sandman-1 closed 1 month ago

Sandman-1 commented 6 months ago

Hello! Thank you for creating such an awesome package! I am running into an issue that was reported as closed/resolved in an earlier thread from January-February of this year. I ran this same code with no issues for another subset of cells from the same Seurat object and provided a larger list of genes to be analyzed and grouped into modules. Any suggestions on how to resolve this would be greatly appreciated. I also tried adjusting the minimum module size to 25 from the default value of 50, but that didn't seem to help. The error is as follows when constructing a second cell type-specific network on my Seurat object: Error in apply(scoreAll[modGenes[candidates], ], 1, which.max) : dim(X) must have a positive length

Code to run hdWGCNA initialization: LF_int <- SetupForWGCNA( LF_int, wgcna_name = "stel_wgcna", features = stel_wgcna_genes) %>% MetacellsByGroups( group.by = c("Sample", "Cell_Type_Subclusters"), k = round(0.001*nrow(subset(LF_int@meta.data, Cell_Type == "Hepatic Stellate Cells"))), cells.use = rownames(subset(LF_int@meta.data, Cell_Type == "Hepatic Stellate Cells")), reduction = "spca", assay = "SCT", min_cells = round(0.003*nrow(subset(LF_int@meta.data, Cell_Type == "Hepatic Stellate Cells"))), max_shared = round(0.001*nrow(subset(LF_int@meta.data, Cell_Type == "Hepatic Stellate Cells"))), ident.group = 'Cell_Type_Subclusters') %>% NormalizeMetacells() %>% SetDatExpr( group.by = "Cell_Type_Subclusters", group_name = unique(subset(LF_int@meta.data, Cell_Type == "Hepatic Stellate Cells")$Cell_Type_Subclusters), assay = "SCT", slot = "data") %>% TestSoftPowers(networkType = 'signed') %>% ConstructNetwork( setDatExpr = FALSE, overwrite_tom = TRUE)

Session Info: `sessioninfo::session_info() ─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────── setting value version R version 4.3.0 (2023-04-21 ucrt) os Windows 11 x64 (build 22621) system x86_64, mingw32 ui RStudio language (EN) collate English_United States.utf8 ctype English_United States.utf8 tz America/Chicago date 2023-10-28 rstudio 2023.06.0+421 Mountain Hydrangea (desktop) pandoc 3.1.1 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)

─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────── package version date (UTC) lib source abind 1.4-5 2016-07-21 [1] CRAN (R 4.3.0) ActivePathways 2.0.2 2023-10-02 [1] CRAN (R 4.3.1) admisc 0.33 2023-06-30 [1] CRAN (R 4.3.0) annotate 1.80.0 2023-10-24 [1] Bioconductor AnnotationDbi 1.64.0 2023-10-24 [1] Bioconductor AnnotationFilter 1.26.0 2023-10-24 [1] Bioconductor AnnotationForge 1.44.0 2023-10-24 [1] Bioconductor AnnotationHub 3.10.0 2023-10-24 [1] Bioconductor ape 5.7-1 2023-03-13 [1] CRAN (R 4.3.0) aplot 0.2.2 2023-10-06 [1] CRAN (R 4.3.1) arrow 13.0.0.1 2023-09-22 [1] CRAN (R 4.3.1) assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.3.0) AUCell 1.24.0 2023-10-24 [1] Bioconductor backports 1.4.1 2021-12-13 [1] CRAN (R 4.3.0) base64enc 0.1-3 2015-07-28 [1] CRAN (R 4.3.0) base64url 1.4 2018-05-14 [1] CRAN (R 4.3.0) beachmat 2.18.0 2023-10-24 [1] Bioconductor beeswarm 0.4.0 2021-06-01 [1] CRAN (R 4.3.0) Biobase 2.62.0 2023-10-24 [1] Bioconductor BiocFileCache 2.11.1 2023-10-27 [1] Github (Bioconductor/BiocFileCache@7b7c4d3) BiocGenerics 0.48.0 2023-10-24 [1] Bioconductor BiocIO 1.12.0 2023-10-24 [1] Bioconductor BiocManager 1.30.22 2023-08-08 [1] CRAN (R 4.3.1) BiocNeighbors 1.20.0 2023-10-24 [1] Bioconductor BiocParallel 1.36.0 2023-10-24 [1] Bioconductor BiocSingular 1.18.0 2023-10-24 [1] Bioconductor BiocVersion 3.18.0 2023-04-25 [1] Bioconductor biomaRt 2.58.0 2023-10-24 [1] Bioconductor Biostrings 2.70.1 2023-10-25 [1] Bioconductor biovizBase 1.50.0 2023-10-24 [1] Bioconductor bit 4.0.5 2022-11-15 [1] CRAN (R 4.3.0) bit64 4.0.5 2020-08-30 [1] CRAN (R 4.3.0) bitops 1.0-7 2021-04-24 [1] CRAN (R 4.3.0) blob 1.2.4 2023-03-17 [1] CRAN (R 4.3.0) bluster 1.12.0 2023-10-24 [1] Bioconductor boot 1.3-28.1 2022-11-22 [2] CRAN (R 4.3.0) broom 1.0.5 2023-06-09 [1] CRAN (R 4.3.0) BSgenome 1.70.0 2023-10-24 [1] Bioconductor BSgenome.Rnorvegicus.UCSC.rn7 1.4.3 2023-05-23 [1] Bioconductor BuenColors 0.5.6 2023-10-03 [1] Github (caleblareau/BuenColors@f1bc8e6) cachem 1.0.8 2023-05-01 [1] CRAN (R 4.3.0) Cairo 1.6-1 2023-08-18 [1] CRAN (R 4.3.1) car 3.1-2 2023-03-30 [1] CRAN (R 4.3.0) carData 3.0-5 2022-01-06 [1] CRAN (R 4.3.0) caret 6.0-94 2023-03-21 [1] CRAN (R 4.3.0) caTools 1.18.2 2021-03-28 [1] CRAN (R 4.3.0) CellChat 1.6.1 2023-05-23 [1] Github (sqjin/CellChat@268b447) checkmate 2.3.0 2023-10-25 [1] CRAN (R 4.3.1) ChIPseeker 1.38.0 2023-10-24 [1] Bioconductor chromVAR 1.24.0 2023-10-24 [1] Bioconductor cicero 1.3.9 2023-10-16 [1] Github (cole-trapnell-lab/cicero-release@2b0ee07) circlize 0.4.15 2022-05-10 [1] CRAN (R 4.3.0) class 7.3-22 2023-05-03 [2] CRAN (R 4.3.1) cli 3.6.1 2023-03-23 [1] CRAN (R 4.3.0) clue 0.3-65 2023-09-23 [1] CRAN (R 4.3.1) cluster 2.1.4 2022-08-22 [2] CRAN (R 4.3.0) clusterProfiler 4.10.0 2023-10-24 [1] Bioconductor CNEr 1.38.0 2023-10-24 [1] Bioconductor coda 0.19-4 2020-09-30 [1] CRAN (R 4.3.0) codetools 0.2-19 2023-02-01 [2] CRAN (R 4.3.0) colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.3.0) combinat 0.0-8 2012-10-29 [1] CRAN (R 4.3.0) ComplexHeatmap 2.18.0 2023-10-24 [1] Bioconductor cowplot 1.1.1 2020-12-30 [1] CRAN (R 4.3.0) crayon 1.5.2 2022-09-29 [1] CRAN (R 4.3.0) curl 5.1.0 2023-10-02 [1] CRAN (R 4.3.1) DAseq 1.0.0 2023-05-23 [1] Github (KlugerLab/DAseq@b1f58e0) data.table 1.14.8 2023-02-17 [1] CRAN (R 4.3.0) DBI 1.1.3 2022-06-18 [1] CRAN (R 4.3.0) dbplyr 2.3.4 2023-09-26 [1] CRAN (R 4.3.0) DDRTree 0.1.5 2017-04-30 [1] CRAN (R 4.3.0) DelayedArray 0.28.0 2023-10-24 [1] Bioconductor DelayedMatrixStats 1.24.0 2023-10-24 [1] Bioconductor deldir 1.0-9 2023-05-17 [1] CRAN (R 4.3.0) DESeq2 1.42.0 2023-10-24 [1] Bioconductor dichromat 2.0-0.1 2022-05-02 [1] CRAN (R 4.3.0) digest 0.6.33 2023-07-07 [1] CRAN (R 4.3.1) DirichletMultinomial 1.44.0 2023-10-24 [1] Bioconductor docopt 0.7.1 2020-06-24 [1] CRAN (R 4.3.0) doParallel 1.0.17 2022-02-07 [1] CRAN (R 4.3.0) DOSE 3.28.0 2023-10-24 [1] Bioconductor doSNOW 1.0.20 2022-02-04 [1] CRAN (R 4.3.0) dotCall64 1.1-0 2023-10-17 [1] CRAN (R 4.3.1) dplyr 1.1.3 2023-09-03 [1] CRAN (R 4.3.1) dqrng 0.3.1 2023-08-30 [1] CRAN (R 4.3.1) DT 0.30 2023-10-05 [1] CRAN (R 4.3.1) dynamicTreeCut 1.63-1 2016-03-11 [1] CRAN (R 4.3.0) e1071 1.7-13 2023-02-01 [1] CRAN (R 4.3.0) edgeR 4.0.0 2023-10-24 [1] Bioconductor ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.3.0) EnhancedVolcano 1.20.0 2023-10-24 [1] Bioconductor enrichplot 1.22.0 2023-10-24 [1] Bioconductor enrichR 3.2 2023-04-14 [1] CRAN (R 4.3.0) EnsDb.Rnorvegicus.v107 0.0.1 2023-05-23 [1] Bioconductor ensembldb 2.26.0 2023-10-24 [1] Bioconductor evaluate 0.22 2023-09-29 [1] CRAN (R 4.3.1) fansi 1.0.5 2023-10-08 [1] CRAN (R 4.3.1) farver 2.1.1 2022-07-06 [1] CRAN (R 4.3.0) fastcluster 1.2.3 2021-05-24 [1] CRAN (R 4.3.0) fastDummies 1.7.3 2023-07-06 [1] CRAN (R 4.3.0) fastICA 1.2-3 2021-09-25 [1] CRAN (R 4.3.0) fastmap 1.1.1 2023-02-24 [1] CRAN (R 4.3.0) fastmatch 1.1-4 2023-08-18 [1] CRAN (R 4.3.1) fgsea 1.28.0 2023-10-24 [1] Bioconductor FigR 0.1.0 2023-10-03 [1] Github (buenrostrolab/FigR@094f5aa) filelock 1.0.2 2018-10-05 [1] CRAN (R 4.3.0) fitdistrplus 1.1-11 2023-04-25 [1] CRAN (R 4.3.0) FNN 1.1.3.2 2023-03-20 [1] CRAN (R 4.3.0) forcats 1.0.0 2023-01-29 [1] CRAN (R 4.3.0) foreach 1.5.2 2022-02-02 [1] CRAN (R 4.3.0) foreign 0.8-85 2023-09-09 [2] CRAN (R 4.3.1) formattable 0.2.1 2021-01-07 [1] CRAN (R 4.3.0) Formula 1.2-5 2023-02-24 [1] CRAN (R 4.3.0) fs 1.6.3 2023-07-20 [1] CRAN (R 4.3.1) future 1.33.0 2023-07-01 [1] CRAN (R 4.3.0) future.apply 1.11.0 2023-05-21 [1] CRAN (R 4.3.0) gageData 2.40.0 2023-10-26 [1] Bioconductor genefilter 1.84.0 2023-10-24 [1] Bioconductor GeneOverlap 1.38.0 2023-10-24 [1] Bioconductor generics 0.1.3 2022-07-05 [1] CRAN (R 4.3.0) GenomeInfoDb 1.38.0 2023-10-24 [1] Bioconductor GenomeInfoDbData 1.2.11 2023-10-27 [1] Bioconductor GenomicAlignments 1.38.0 2023-10-24 [1] Bioconductor GenomicFeatures 1.54.0 2023-10-24 [1] Bioconductor GenomicRanges 1.54.0 2023-10-24 [1] Bioconductor GetoptLong 1.0.5 2020-12-15 [1] CRAN (R 4.3.0) ggalluvial 0.12.5 2023-02-22 [1] CRAN (R 4.3.0) ggbeeswarm 0.7.2 2023-04-29 [1] CRAN (R 4.3.0) ggforce 0.4.1 2022-10-04 [1] CRAN (R 4.3.0) ggfun 0.1.3 2023-09-15 [1] CRAN (R 4.3.1) ggnetwork 0.5.12 2023-03-06 [1] CRAN (R 4.3.0) ggplot2 3.4.4 2023-10-12 [1] CRAN (R 4.3.1) ggplotify 0.1.2 2023-08-09 [1] CRAN (R 4.3.1) ggpolypath 0.3.0 2023-09-25 [1] CRAN (R 4.3.1) ggpubr 0.6.0 2023-02-10 [1] CRAN (R 4.3.0) ggraph 2.1.0 2022-10-09 [1] CRAN (R 4.3.0) ggrepel 0.9.4 2023-10-13 [1] CRAN (R 4.3.1) ggridges 0.5.4 2022-09-26 [1] CRAN (R 4.3.0) ggseqlogo 0.1 2017-07-25 [1] CRAN (R 4.3.0) ggsignif 0.6.4 2022-10-13 [1] CRAN (R 4.3.0) ggtree 3.10.0 2023-10-24 [1] Bioconductor glmnet 4.1-8 2023-08-22 [1] CRAN (R 4.3.1) GlobalOptions 0.1.2 2020-06-10 [1] CRAN (R 4.3.0) globals 0.16.2 2022-11-21 [1] CRAN (R 4.3.0) glue 1.6.2 2022-02-24 [1] CRAN (R 4.3.0) gmp 0.7-2 2023-07-01 [1] CRAN (R 4.3.0) GO.db 3.18.0 2023-10-27 [1] Bioconductor goftest 1.2-3 2021-10-07 [1] CRAN (R 4.3.0) GOSemSim 2.28.0 2023-10-24 [1] Bioconductor gower 1.0.1 2022-12-22 [1] CRAN (R 4.3.0) gplots 3.1.3 2022-04-25 [1] CRAN (R 4.3.0) graph 1.80.0 2023-10-24 [1] Bioconductor graphlayouts 1.0.1 2023-09-19 [1] CRAN (R 4.3.1) gridBase 0.4-7 2014-02-24 [1] CRAN (R 4.3.0) gridExtra 2.3 2017-09-09 [1] CRAN (R 4.3.0) gridGraphics 0.5-1 2020-12-13 [1] CRAN (R 4.3.0) GSEABase 1.64.0 2023-10-24 [1] Bioconductor gson 0.1.0 2023-03-07 [1] CRAN (R 4.3.0) gtable 0.3.4 2023-08-21 [1] CRAN (R 4.3.1) gtools 3.9.4 2022-11-27 [1] CRAN (R 4.3.0) Gviz 1.46.0 2023-10-24 [1] Bioconductor hardhat 1.3.0 2023-03-30 [1] CRAN (R 4.3.0) harmony 1.1.0 2023-10-23 [1] CRAN (R 4.3.1) HDO.db 0.99.1 2023-05-23 [1] Bioconductor hdWGCNA 0.2.24 2023-10-27 [1] Github (smorabit/hdWGCNA@bf53e96) HGNChelper 0.8.1 2019-10-24 [1] CRAN (R 4.3.0) Hmisc 5.1-1 2023-09-12 [1] CRAN (R 4.3.1) hms 1.1.3 2023-03-21 [1] CRAN (R 4.3.0) HPO.db 0.99.2 2023-06-28 [1] Bioconductor HSMMSingleCell 1.22.0 2023-10-26 [1] Bioconductor htmlTable 2.4.1 2022-07-07 [1] CRAN (R 4.3.0) htmltools 0.5.6.1 2023-10-06 [1] CRAN (R 4.3.1) htmlwidgets 1.6.2 2023-03-17 [1] CRAN (R 4.3.0) httpuv 1.6.12 2023-10-23 [1] CRAN (R 4.3.1) httr 1.4.7 2023-08-15 [1] CRAN (R 4.3.1) ica 1.0-3 2022-07-08 [1] CRAN (R 4.3.0) igraph 1.5.1 2023-08-10 [1] CRAN (R 4.3.1) impute 1.76.0 2023-10-24 [1] Bioconductor interactiveDisplayBase 1.40.0 2023-10-24 [1] Bioconductor interp 1.1-4 2023-03-31 [1] CRAN (R 4.3.0) ipred 0.9-14 2023-03-09 [1] CRAN (R 4.3.0) IRanges 2.36.0 2023-10-24 [1] Bioconductor IRdisplay 1.1 2022-01-04 [1] CRAN (R 4.3.0) IReNA 0.99.0 2023-05-23 [1] Github (jiang-junyao/IReNA@4441e6a) IRkernel 1.3.2 2023-01-20 [1] CRAN (R 4.3.0) irlba 2.3.5.1 2022-10-03 [1] CRAN (R 4.3.0) iterators 1.0.14 2022-02-05 [1] CRAN (R 4.3.0) JASPAR2024 0.99.6 2023-10-18 [1] Bioconductor jpeg 0.1-10 2022-11-29 [1] CRAN (R 4.3.0) jsonlite 1.8.7 2023-06-29 [1] CRAN (R 4.3.0) KEGGREST 1.42.0 2023-10-24 [1] Bioconductor KernSmooth 2.23-22 2023-07-10 [2] CRAN (R 4.3.1) knitr 1.44 2023-09-11 [1] CRAN (R 4.3.1) ks 1.14.1 2023-08-10 [1] CRAN (R 4.3.1) labeling 0.4.3 2023-08-29 [1] CRAN (R 4.3.1) later 1.3.1 2023-05-02 [1] CRAN (R 4.3.0) lattice 0.22-5 2023-10-24 [2] CRAN (R 4.3.0) latticeExtra 0.6-30 2022-07-04 [1] CRAN (R 4.3.0) lava 1.7.2.1 2023-02-27 [1] CRAN (R 4.3.0) lazyeval 0.2.2 2019-03-15 [1] CRAN (R 4.3.0) leiden 0.4.3 2022-09-10 [1] CRAN (R 4.3.0) leidenbase 0.1.25 2023-07-19 [1] CRAN (R 4.3.1) lifecycle 1.0.3 2022-10-07 [1] CRAN (R 4.3.0) limma 3.58.0 2023-10-24 [1] Bioconductor listenv 0.9.0 2022-12-16 [1] CRAN (R 4.3.0) lme4 1.1-34 2023-07-04 [1] CRAN (R 4.3.0) lmtest 0.9-40 2022-03-21 [1] CRAN (R 4.3.0) locfit 1.5-9.8 2023-06-11 [1] CRAN (R 4.3.1) lubridate 1.9.3 2023-09-27 [1] CRAN (R 4.3.1) magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.3.0) MASS 7.3-60 2023-05-04 [2] CRAN (R 4.3.1) Matrix 1.6-1.1 2023-09-18 [1] CRAN (R 4.3.1) MatrixGenerics 1.14.0 2023-10-24 [1] Bioconductor matrixStats 1.0.0 2023-06-02 [1] CRAN (R 4.3.0) mclust 6.0.0 2022-10-31 [1] CRAN (R 4.3.0) memoise 2.0.1 2021-11-26 [1] CRAN (R 4.3.0) metapod 1.10.0 2023-10-24 [1] Bioconductor mime 0.12 2021-09-28 [1] CRAN (R 4.3.0) miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.3.0) minqa 1.2.6 2023-09-11 [1] CRAN (R 4.3.1) ModelMetrics 1.2.2.2 2020-03-17 [1] CRAN (R 4.3.0) monocle 2.30.0 2023-10-24 [1] Bioconductor monocle3 1.3.1 2023-05-23 [1] Github (cole-trapnell-lab/monocle3@b545460) motifmatchr 1.24.0 2023-10-24 [1] Bioconductor MPO.db 0.99.7 2023-05-31 [1] Bioconductor munsell 0.5.0 2018-06-12 [1] CRAN (R 4.3.0) mvtnorm 1.2-3 2023-08-25 [1] CRAN (R 4.3.1) Nebulosa 1.12.0 2023-10-24 [1] Bioconductor network 1.18.1 2023-01-24 [1] CRAN (R 4.3.0) networkD3 0.4 2017-03-18 [1] CRAN (R 4.3.0) nlme 3.1-163 2023-08-09 [2] CRAN (R 4.3.1) nloptr 2.0.3 2022-05-26 [1] CRAN (R 4.3.0) NMF 0.26 2023-03-20 [1] CRAN (R 4.3.0) nnet 7.3-19 2023-05-03 [2] CRAN (R 4.3.1) openxlsx 4.2.5.2 2023-02-06 [1] CRAN (R 4.3.0) org.Rn.eg.db 3.18.0 2023-10-27 [1] Bioconductor parallelly 1.36.0 2023-05-26 [1] CRAN (R 4.3.0) patchwork 1.1.3 2023-08-14 [1] CRAN (R 4.3.1) pbapply 1.7-2 2023-06-27 [1] CRAN (R 4.3.0) pbdZMQ 0.3-10 2023-09-05 [1] CRAN (R 4.3.1) pheatmap 1.0.12 2019-01-04 [1] CRAN (R 4.3.0) pillar 1.9.0 2023-03-22 [1] CRAN (R 4.3.0) pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.3.0) plotly 4.10.3 2023-10-21 [1] CRAN (R 4.3.1) plotrix 3.8-2 2021-09-08 [1] CRAN (R 4.3.0) plyr 1.8.9 2023-10-02 [1] CRAN (R 4.3.1) png 0.1-8 2022-11-29 [1] CRAN (R 4.3.0) polyclip 1.10-6 2023-09-27 [1] CRAN (R 4.3.1) poweRlaw 0.70.6 2020-04-25 [1] CRAN (R 4.3.0) pracma 2.4.2 2022-09-22 [1] CRAN (R 4.3.0) preprocessCore 1.64.0 2023-10-24 [1] Bioconductor presto 1.0.0 2023-05-28 [1] Github (immunogenomics/presto@31dc97f) prettyunits 1.2.0 2023-09-24 [1] CRAN (R 4.3.1) pROC 1.18.4 2023-07-06 [1] CRAN (R 4.3.1) prodlim 2023.08.28 2023-08-28 [1] CRAN (R 4.3.1) progress 1.2.2 2019-05-16 [1] CRAN (R 4.3.0) progressr 0.14.0 2023-08-10 [1] CRAN (R 4.3.1) promises 1.2.1 2023-08-10 [1] CRAN (R 4.3.1) ProtGenerics 1.34.0 2023-10-24 [1] Bioconductor proxy 0.4-27 2022-06-09 [1] CRAN (R 4.3.0) purrr 1.0.2 2023-08-10 [1] CRAN (R 4.3.1) qlcMatrix 0.9.7 2018-04-20 [1] CRAN (R 4.3.0) qvalue 2.34.0 2023-10-24 [1] Bioconductor R.methodsS3 1.8.2 2022-06-13 [1] CRAN (R 4.3.0) R.oo 1.25.0 2022-06-12 [1] CRAN (R 4.3.0) R.utils 2.12.2 2022-11-11 [1] CRAN (R 4.3.0) R6 2.5.1 2021-08-19 [1] CRAN (R 4.3.0) ragg 1.2.6 2023-10-10 [1] CRAN (R 4.3.1) randomcoloR 1.1.0.1 2019-11-24 [1] CRAN (R 4.3.0) RANN 2.6.1 2019-01-08 [1] CRAN (R 4.3.0) rappdirs 0.3.3 2021-01-31 [1] CRAN (R 4.3.0) RcisTarget 1.20.0 2023-04-25 [1] Bioconductor RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.3.0) Rcpp 1.0.11 2023-07-06 [1] CRAN (R 4.3.1) RcppAnnoy 0.0.21 2023-07-02 [1] CRAN (R 4.3.0) RcppHNSW 0.5.0 2023-09-19 [1] CRAN (R 4.3.1) RcppRoll 0.3.0 2018-06-05 [1] CRAN (R 4.3.0) RCurl 1.98-1.12 2023-03-27 [1] CRAN (R 4.3.0) RCy3 2.22.0 2023-10-24 [1] Bioconductor readr 2.1.4 2023-02-10 [1] CRAN (R 4.3.0) recipes 1.0.8 2023-08-25 [1] CRAN (R 4.3.1) registry 0.5-1 2019-03-05 [1] CRAN (R 4.3.0) remotes 2.4.2.1 2023-07-18 [1] CRAN (R 4.3.1) repr 1.1.6 2023-01-26 [1] CRAN (R 4.3.0) reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.3.0) restfulr 0.0.15 2022-06-16 [1] CRAN (R 4.3.0) reticulate 1.34.0 2023-10-12 [1] CRAN (R 4.3.1) rjson 0.2.21 2022-01-09 [1] CRAN (R 4.3.0) RJSONIO 1.3-1.8 2023-01-31 [1] CRAN (R 4.3.0) rlang 1.1.1 2023-04-28 [1] CRAN (R 4.3.0) rmarkdown 2.25 2023-09-18 [1] CRAN (R 4.3.1) Rmpfr 0.9-3 2023-08-08 [1] CRAN (R 4.3.1) rngtools 1.5.2 2021-09-20 [1] CRAN (R 4.3.0) ROCR 1.0-11 2020-05-02 [1] CRAN (R 4.3.0) rpart 4.1.21 2023-10-09 [2] CRAN (R 4.3.1) Rsamtools 2.18.0 2023-10-24 [1] Bioconductor RSpectra 0.16-1 2022-04-24 [1] CRAN (R 4.3.0) RSQLite 2.3.1 2023-04-03 [1] CRAN (R 4.3.0) rstatix 0.7.2 2023-02-01 [1] CRAN (R 4.3.0) rstudioapi 0.15.0 2023-07-07 [1] CRAN (R 4.3.0) rsvd 1.0.5 2021-04-16 [1] CRAN (R 4.3.0) rtracklayer 1.62.0 2023-10-24 [1] Bioconductor Rtsne 0.16 2022-04-17 [1] CRAN (R 4.3.0) S4Arrays 1.2.0 2023-10-24 [1] Bioconductor S4Vectors 0.40.0 2023-10-24 [1] Bioconductor SAVER 1.1.2 2019-11-13 [1] CRAN (R 4.3.0) ScaledMatrix 1.10.0 2023-10-24 [1] Bioconductor scales 1.2.1 2022-08-20 [1] CRAN (R 4.3.0) scater 1.30.0 2023-10-24 [1] Bioconductor scattermore 1.2 2023-06-12 [1] CRAN (R 4.3.1) scatterpie 0.2.1 2023-06-07 [1] CRAN (R 4.3.0) scDblFinder 1.16.0 2023-10-24 [1] Bioconductor Scillus 0.5.0 2023-05-23 [1] Github (xmc811/Scillus@4e7884d) scran 1.30.0 2023-10-24 [1] Bioconductor sctransform 0.4.1 2023-10-19 [1] CRAN (R 4.3.1) scuttle 1.12.0 2023-10-24 [1] Bioconductor seqLogo 1.68.0 2023-10-24 [1] Bioconductor sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.3.0) Seurat 5.0.0 2023-10-27 [1] Github (satijalab/seurat@a4075e7) SeuratObject 5.0.0 2023-10-26 [1] CRAN (R 4.3.0) SeuratWrappers 0.3.19 2023-05-28 [1] Github (satijalab/seurat-wrappers@73466e3) shadowtext 0.1.2 2022-04-22 [1] CRAN (R 4.3.0) shape 1.4.6 2021-05-19 [1] CRAN (R 4.3.0) shiny 1.7.5.1 2023-10-14 [1] CRAN (R 4.3.1) Sierra 0.99.27 2023-05-23 [1] Github (VCCRI/Sierra@06184d4) Signac 1.11.0 2023-10-13 [1] CRAN (R 4.3.1) SingleCellExperiment 1.24.0 2023-10-24 [1] Bioconductor slam 0.1-50 2022-01-08 [1] CRAN (R 4.3.0) sna 2.7-1 2023-01-24 [1] CRAN (R 4.3.0) snow 0.4-4 2021-10-27 [1] CRAN (R 4.3.0) SoupX 1.6.2 2022-11-01 [1] CRAN (R 4.3.0) sp 2.1-1 2023-10-16 [1] CRAN (R 4.3.1) spam 2.10-0 2023-10-23 [1] CRAN (R 4.3.1) SparseArray 1.2.0 2023-10-25 [1] Bioconductor sparseMatrixStats 1.14.0 2023-10-24 [1] Bioconductor sparsesvd 0.2-2 2023-01-14 [1] CRAN (R 4.3.0) spatstat.data 3.0-3 2023-10-24 [1] CRAN (R 4.3.1) spatstat.explore 3.2-5 2023-10-22 [1] CRAN (R 4.3.1) spatstat.geom 3.2-7 2023-10-20 [1] CRAN (R 4.3.1) spatstat.random 3.2-1 2023-10-21 [1] CRAN (R 4.3.1) spatstat.sparse 3.0-3 2023-10-24 [1] CRAN (R 4.3.1) spatstat.utils 3.0-4 2023-10-24 [1] CRAN (R 4.3.1) statmod 1.5.0 2023-01-06 [1] CRAN (R 4.3.0) statnet.common 4.9.0 2023-05-24 [1] CRAN (R 4.3.1) stringi 1.7.12 2023-01-11 [1] CRAN (R 4.3.0) stringr 1.5.0 2022-12-02 [1] CRAN (R 4.3.1) SummarizedExperiment 1.32.0 2023-10-24 [1] Bioconductor SuperCell 1.0 2023-10-26 [1] Github (GfellerLab/SuperCell@90c02f9) survival 3.5-7 2023-08-14 [2] CRAN (R 4.3.1) svglite 2.1.2 2023-10-11 [1] CRAN (R 4.3.1) systemfonts 1.0.5 2023-10-09 [1] CRAN (R 4.3.1) tensor 1.5 2012-05-05 [1] CRAN (R 4.3.0) terra 1.7-55 2023-10-13 [1] CRAN (R 4.3.1) tester 0.1.7 2013-11-14 [1] CRAN (R 4.3.0) textshaping 0.3.7 2023-10-09 [1] CRAN (R 4.3.1) TFBSTools 1.40.0 2023-10-24 [1] Bioconductor TFMPvalue 0.0.9 2022-10-21 [1] CRAN (R 4.3.0) tibble 3.2.1 2023-03-20 [1] CRAN (R 4.3.0) tidygraph 1.2.3 2023-02-01 [1] CRAN (R 4.3.0) tidyr 1.3.0 2023-01-24 [1] CRAN (R 4.3.0) tidyselect 1.2.0 2022-10-10 [1] CRAN (R 4.3.0) tidytree 0.4.5 2023-08-10 [1] CRAN (R 4.3.1) timechange 0.2.0 2023-01-11 [1] CRAN (R 4.3.0) timeDate 4022.108 2023-01-07 [1] CRAN (R 4.3.0) toscutil 2.7.4 2023-09-05 [1] CRAN (R 4.3.1) treeio 1.26.0 2023-10-24 [1] Bioconductor tuple 0.4-02 2014-10-31 [1] CRAN (R 4.3.0) tweenr 2.0.2 2022-09-06 [1] CRAN (R 4.3.0) TxDb.Hsapiens.UCSC.hg19.knownGene 3.2.2 2023-05-23 [1] Bioconductor tzdb 0.4.0 2023-05-12 [1] CRAN (R 4.3.0) UCell 2.6.1 2023-10-25 [1] Bioconductor uchardet 1.1.1 2022-11-07 [1] CRAN (R 4.3.0) utf8 1.2.4 2023-10-22 [1] CRAN (R 4.3.1) uuid 1.1-1 2023-08-17 [1] CRAN (R 4.3.1) uwot 0.1.16 2023-06-29 [1] CRAN (R 4.3.0) V8 4.4.0 2023-10-09 [1] CRAN (R 4.3.1) VariantAnnotation 1.48.0 2023-10-24 [1] Bioconductor vctrs 0.6.4 2023-10-12 [1] CRAN (R 4.3.1) venn 1.11 2022-06-08 [1] CRAN (R 4.3.0) VGAM 1.1-9 2023-09-19 [1] CRAN (R 4.3.1) vipor 0.4.5 2017-03-22 [1] CRAN (R 4.3.0) viridis 0.6.4 2023-07-22 [1] CRAN (R 4.3.1) viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.3.0) WGCNA 1.72-1 2023-01-18 [1] CRAN (R 4.3.0) withr 2.5.1 2023-09-26 [1] CRAN (R 4.3.1) WriteXLS 6.4.0 2022-02-24 [1] CRAN (R 4.3.0) xfun 0.40 2023-08-09 [1] CRAN (R 4.3.1) xgboost 1.7.5.1 2023-03-30 [1] CRAN (R 4.3.0) XML 3.99-0.14 2023-03-19 [1] CRAN (R 4.3.0) xml2 1.3.5 2023-07-06 [1] CRAN (R 4.3.1) xtable 1.8-4 2019-04-21 [1] CRAN (R 4.3.0) XVector 0.42.0 2023-10-24 [1] Bioconductor yaml 2.3.7 2023-01-23 [1] CRAN (R 4.3.0) yulab.utils 0.1.0 2023-09-20 [1] CRAN (R 4.3.1) zip 2.3.0 2023-04-17 [1] CRAN (R 4.3.0) zlibbioc 1.48.0 2023-10-24 [1] Bioconductor zoo 1.8-12 2023-04-13 [1] CRAN (R 4.3.0)

[1] C:/Users/hebbale/AppData/Local/R/win-library/4.3 [2] C:/Program Files/R/R-4.3.0/library`

smorabit commented 6 months ago

Hi, I am happy to try to help you resolve this error. First, could you please format your code so that it is more easily readable? It is difficult to understand when it is all on one line. Also could you let me know which function is causing the error?

Sandman-1 commented 6 months ago

Apologies for the formatting. I think I resolved the previous error mentioned by playing around with the k and max_shared parameters. However, I am now running into a new error regardless of which cells I subset or what parameters I supply when creating metacells. The error is as follows: Error in .subscript.2ary(x, i, j, drop = drop) : subscript out of bounds

My code for this is as follows: LF_int <- SetupForWGCNA(LF_int, wgcna_name = "wgcna", features = wgcna_genes) %>% MetacellsByGroups(group.by = c("Sample", "Cell_Type"), k = 25, cells.use = rownames(subset(LF_int@meta.data, Cell_Type_Subclusters != "Ignore")), reduction = "spca", assay = "SCT", min_cells = 50, max_shared = 12, ident.group = "Cell_Type")

Sandman-1 commented 6 months ago

Ah, I am sorry for the formatting again. How do I separate it by line?

smorabit commented 2 months ago

Please refer to the Markdown style guide.

smorabit commented 1 month ago

Closing due to inactivity.