patonlab / GoodVibes

Calculate quasi-harmonic free energies from Gaussian output files with temperature and other corrections
http://www.patonlab.colostate.edu
MIT License
129 stars 50 forks source link

Error in addUMAP #37

Closed bbraun923 closed 3 years ago

bbraun923 commented 3 years ago

I've just run into a problem where addUMAP successfully runs but then errors when attempting to save the model. The error is reproducable on the training dataset. Wondering if someone has idea for fix?

Attach your log file No log file is produced for addUMAP

Describe the bug Error in addUMAP(...) function:

projHeme2 <- addUMAP(ArchRProj = projHeme2,reducedDims = "IterativeLSI",name = "UMAP", nNeighbors = 30, minDist = 0.5, metric = "cosine")
17:22:29 UMAP embedding parameters a = 0.583 b = 1.334
17:22:29 Read 10661 rows and found 30 numeric columns
17:22:29 Using Annoy for neighbor search, n_neighbors = 30
17:22:29 Building Annoy index with metric = cosine, n_trees = 50
0%   10   20   30   40   50   60   70   80   90   100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
17:22:31 Writing NN index file to temp file /tmp/RtmppTRa6Z/filed6387f202b1e
17:22:31 Searching Annoy index using 40 threads, search_k = 3000
17:22:31 Annoy recall = 100%
17:22:33 Commencing smooth kNN distance calibration using 40 threads
17:22:35 Initializing from normalized Laplacian + noise
17:22:36 Commencing optimization for 200 epochs, with 485984 positive edges
0%   10   20   30   40   50   60   70   80   90   100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
17:22:51 Optimization finished
**Error in model$nn_index$save(nn_tmpfname) : attempt to apply non-function**

To Reproduce See above

Expected behavior I haven't had this problem over the past months. addUMAP has successfully run up to this point.

Screenshots N/A

Session Info

R version 3.6.2 (2019-12-12)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server 7.8 (Maipo)

Matrix products: default
BLAS:   /usr/lib64/libblas.so.3.4.2
LAPACK: /usr/lib64/liblapack.so.3.4.2

locale:
[1] C

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

other attached packages:
 [1] uwot_0.1.8.9001                    BSgenome.Hsapiens.UCSC.hg19_1.4.0
 [3] BSgenome.Mmusculus.UCSC.mm10_1.4.0 BSgenome_1.54.0
 [5] rtracklayer_1.46.0                 Biostrings_2.54.0
 [7] XVector_0.26.0                     gridExtra_2.3
 [9] nabor_0.5.0                        Seurat_3.2.0
[11] ArchR_1.0.0                        magrittr_1.5
[13] rhdf5_2.30.1                       Matrix_1.2-18
[15] data.table_1.13.0                  SummarizedExperiment_1.16.1
[17] DelayedArray_0.12.3                BiocParallel_1.20.1
[19] matrixStats_0.57.0                 Biobase_2.46.0
[21] GenomicRanges_1.38.0               GenomeInfoDb_1.22.0
[23] IRanges_2.20.2                     S4Vectors_0.24.4
[25] BiocGenerics_0.32.0                ggplot2_3.3.2

loaded via a namespace (and not attached):
  [1] backports_1.1.10         plyr_1.8.6               igraph_1.2.5
  [4] lazyeval_0.2.2           splines_3.6.2            listenv_0.8.0
  [7] usethis_1.6.3            digest_0.6.25            htmltools_0.5.0
 [10] fansi_0.4.1              memoise_1.1.0            tensor_1.5
 [13] cluster_2.1.0            ROCR_1.0-11              remotes_2.2.0
 [16] globals_0.13.0           prettyunits_1.1.1        colorspace_1.4-1
 [19] rappdirs_0.3.1           ggrepel_0.8.2            dplyr_1.0.2
 [22] callr_3.4.4              crayon_1.3.4             RCurl_1.98-1.2
 [25] jsonlite_1.7.1           spatstat_1.64-1          spatstat.data_1.4-3
 [28] survival_3.2-7           zoo_1.8-8                ape_5.4-1
 [31] glue_1.4.2               polyclip_1.10-0          gtable_0.3.0
 [34] zlibbioc_1.32.0          leiden_0.3.3             pkgbuild_1.1.0
 [37] Rhdf5lib_1.8.0           future.apply_1.6.0       abind_1.4-5
 [40] scales_1.1.1             miniUI_0.1.1.1           Rcpp_1.0.5
 [43] viridisLite_0.3.0        xtable_1.8-4             reticulate_1.16
 [46] rsvd_1.0.3               htmlwidgets_1.5.1        httr_1.4.2
 [49] RColorBrewer_1.1-2       ellipsis_0.3.1           ica_1.0-2
 [52] pkgconfig_2.0.3          XML_3.99-0.3             farver_2.0.3
 [55] deldir_0.1-29            tidyselect_1.1.0         labeling_0.3
 [58] rlang_0.4.7              reshape2_1.4.4           later_1.1.0.1
 [61] munsell_0.5.0            tools_3.6.2              cli_2.0.2
 [64] generics_0.0.2           devtools_2.3.1           ggridges_0.5.2
 [67] stringr_1.4.0            fastmap_1.0.1            goftest_1.2-2
 [70] fs_1.5.0                 processx_3.4.4           fitdistrplus_1.1-1
 [73] purrr_0.3.4              RANN_2.6.1               pbapply_1.4-3
 [76] future_1.19.1            nlme_3.1-149             mime_0.9
 [79] rhandsontable_0.3.7      shinythemes_1.1.2        compiler_3.6.2
 [82] curl_4.3                 plotly_4.9.2.1           png_0.1-7
 [85] testthat_2.3.2           spatstat.utils_1.17-0    tibble_3.0.3
 [88] stringi_1.5.3            ps_1.3.4                 desc_1.2.0
 [91] RSpectra_0.16-0          lattice_0.20-41          vctrs_0.3.4
 [94] pillar_1.4.6             lifecycle_0.2.0          BiocManager_1.30.10
 [97] lmtest_0.9-38            RcppAnnoy_0.0.16         cowplot_1.1.0
[100] bitops_1.0-6             irlba_2.3.3              httpuv_1.5.4
[103] patchwork_1.0.1          R6_2.4.1                 promises_1.1.1
[106] KernSmooth_2.23-17       sessioninfo_1.1.1        codetools_0.2-16
[109] gtools_3.8.2             MASS_7.3-53              assertthat_0.2.1
[112] pkgload_1.1.0            rprojroot_1.3-2          withr_2.3.0
[115] presto_1.0.0             GenomicAlignments_1.22.1 sctransform_0.3
[118] Rsamtools_2.2.3          harmony_1.0              GenomeInfoDbData_1.2.2
[121] mgcv_1.8-33              rpart_4.1-15             tidyr_1.1.2
[124] Cairo_1.5-12.2           Rtsne_0.15               shiny_1.5.0