dmcable / spacexr

Spatial-eXpression-R: Cell type identification (including cell type mixtures) and cell type-specific differential expression for spatial transcriptomics
GNU General Public License v3.0
319 stars 73 forks source link

Error message on run.RCTD "could not find function "solveIRWLS.weights" #181

Closed lyndsey13sk closed 11 months ago

lyndsey13sk commented 1 year ago

Has anyone else had this issue? Do I need to install an older version of RCTD?

myRCTD <- run.RCTD(myRCTD, doublet_mode = 'full') fitBulk: decomposing bulk chooseSigma: using initial Q_mat with sigma = 1 Error in { : task 1 failed - "could not find function "solveIRWLS.weights""

sessionInfo() R version 4.2.2 (2022-10-31 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8

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

other attached packages: [1] S4Vectors_0.36.2 BiocGenerics_0.44.0 spacexr_2.2.1 doParallel_1.0.17 iterators_1.0.14
[6] foreach_1.5.2 Matrix_1.6-1 ggplot2_3.4.4 SeuratObject_4.1.4 Seurat_4.4.0

ReaganGen commented 1 year ago

I also have the same error. It seems that the function solveIRWLS.weights does not loaded properly. When setting max_cores to 1, the error disappears.

dmcable commented 1 year ago

Thank you for bringing this too my attention. Does this occur with the spatial-transcriptomics vignette? So far I have not been able to reproduce this issue.

PRSby commented 6 months ago

I also have the same error. It seems that the function solveIRWLS.weights does not loaded properly. When setting max_cores to 1, the error disappears.

Thank you so much! You've solved a problem that has been bothering me for a couple of days!