HelenaLC / CATALYST

Cytometry dATa anALYsis Tools
66 stars 30 forks source link

Error in if (all(abs(as.numeric(labels_y) - as.numeric(y)) < 1e-04)) { : missing value where TRUE/FALSE needed #353

Closed denvercal1234GitHub closed 5 months ago

denvercal1234GitHub commented 1 year ago

Hi there,

When running CATALYST::plotExprHeatmap I encountered the error below for some proteins.

Would you mind giving me some pointers to solve this error?

When I took out q=0 then there was no error.

Thank you for your help.

CATALYST::plotExprHeatmap(F37_sce, features = "CD185", scale = "first", q = 0, bars = T, k="meta29", by="cluster_id", perc=T, bin_anno = T)
Error in if (all(abs(as.numeric(labels_y) - as.numeric(y)) < 1e-04)) { : 
  missing value where TRUE/FALSE needed
> session_info()
─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.3.0 (2023-04-21)
 os       Ubuntu 22.04.2 LTS
 system   x86_64, linux-gnu
 ui       RStudio
 language (EN)
 collate  en_GB.UTF-8
 ctype    en_GB.UTF-8
 tz       Europe/London
 date     2023-06-29
 rstudio  2023.03.1+446 Cherry Blossom (server)
 pandoc   2.19.2 @ /usr/lib/rstudio-server/bin/quarto/bin/tools/ (via rmarkdown)

─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package              * version    date (UTC) lib source
 abind                  1.4-5      2016-07-21 [2] CRAN (R 4.3.0)
 askpass                1.1        2019-01-13 [2] CRAN (R 4.3.0)
 backports              1.4.1      2021-12-13 [2] CRAN (R 4.3.0)
 base64enc              0.1-3      2015-07-28 [2] CRAN (R 4.3.0)
 beachmat               2.16.0     2023-04-25 [2] Bioconductor
 beeswarm               0.4.0      2021-06-01 [2] CRAN (R 4.3.0)
 BH                   * 1.81.0-1   2023-01-22 [2] CRAN (R 4.3.0)
 Biobase              * 2.60.0     2023-04-25 [2] Bioconductor
 BiocGenerics         * 0.46.0     2023-04-25 [2] Bioconductor
 BiocManager            1.30.21    2023-06-10 [2] CRAN (R 4.3.0)
 BiocNeighbors          1.18.0     2023-04-25 [2] Bioconductor
 BiocParallel         * 1.34.2     2023-05-22 [2] Bioconductor
 BiocSingular           1.16.0     2023-04-25 [2] Bioconductor
 bitops                 1.0-7      2021-04-24 [2] CRAN (R 4.3.0)
 bluster              * 1.10.0     2023-04-25 [2] Bioconductor
 broom                  1.0.4      2023-03-11 [2] CRAN (R 4.3.0)
 cachem                 1.0.8      2023-05-01 [2] CRAN (R 4.3.0)
 Cairo                  1.6-0      2022-07-05 [2] CRAN (R 4.3.0)
 callr                  3.7.3      2022-11-02 [2] CRAN (R 4.3.0)
 car                    3.1-2      2023-03-30 [2] CRAN (R 4.3.0)
 carData                3.0-5      2022-01-06 [2] CRAN (R 4.3.0)
 caret                * 6.0-94     2023-03-21 [2] CRAN (R 4.3.0)
 CATALYST             * 1.24.0     2023-04-25 [2] Bioconductor
 changepoint            2.2.4      2022-11-03 [1] CRAN (R 4.3.0)
 circlize               0.4.15     2022-05-10 [2] CRAN (R 4.3.0)
 class                * 7.3-22     2023-05-03 [2] CRAN (R 4.3.0)
 cli                    3.6.1      2023-03-23 [2] CRAN (R 4.3.0)
 clue                   0.3-64     2023-01-31 [2] CRAN (R 4.3.0)
 cluster              * 2.1.4      2022-08-22 [2] CRAN (R 4.3.0)
 codetools              0.2-19     2023-02-01 [2] CRAN (R 4.3.0)
 colorRamps           * 2.3.1      2022-05-02 [2] CRAN (R 4.3.0)
 colorspace             2.1-0      2023-01-23 [2] CRAN (R 4.3.0)
 ComplexHeatmap       * 2.16.0     2023-04-25 [2] Bioconductor
 ConsensusClusterPlus   1.64.0     2023-04-25 [2] Bioconductor
 ConsRank             * 2.1.3      2023-03-23 [1] CRAN (R 4.3.0)
 corpcor                1.6.10     2021-09-16 [2] CRAN (R 4.3.0)
 cowplot                1.1.1      2020-12-30 [2] CRAN (R 4.3.0)
 crayon                 1.5.2      2022-09-29 [2] CRAN (R 4.3.0)
 curl                   5.0.1      2023-06-07 [2] CRAN (R 4.3.0)
 cytolib                2.12.0     2023-04-25 [2] Bioconductor
 CytoNorm             * 0.0.17     2023-06-29 [1] Github (saeyslab/CytoNorm@5aa8942)
 data.table           * 1.14.8     2023-02-17 [2] CRAN (R 4.3.0)
 DelayedArray           0.26.3     2023-05-22 [2] Bioconductor
 DelayedMatrixStats     1.22.1     2023-06-09 [2] Bioconductor
 deldir                 1.0-9      2023-05-17 [2] CRAN (R 4.3.0)
 dendextend             1.17.1     2023-03-25 [2] CRAN (R 4.3.0)
 DEoptimR               1.0-13     2023-05-02 [2] CRAN (R 4.3.0)
 desc                   1.4.2      2022-09-08 [2] CRAN (R 4.3.0)
 deSolve                1.35       2023-03-12 [2] CRAN (R 4.3.0)
 devtools             * 2.4.5      2022-10-11 [2] CRAN (R 4.3.0)
 digest                 0.6.32     2023-06-26 [2] CRAN (R 4.3.0)
 doParallel             1.0.17     2022-02-07 [2] CRAN (R 4.3.0)
 dplyr                * 1.1.2      2023-04-20 [2] CRAN (R 4.3.0)
 drc                    3.0-1      2016-08-30 [2] CRAN (R 4.3.0)
 ellipsis               0.3.2      2021-04-29 [2] CRAN (R 4.3.0)
 evaluate               0.21       2023-05-05 [2] CRAN (R 4.3.0)
 extrafont              0.19       2023-01-18 [2] CRAN (R 4.3.0)
 extrafontdb            1.0        2012-06-11 [2] CRAN (R 4.3.0)
 factoextra           * 1.0.7      2020-04-01 [2] CRAN (R 4.3.0)
 fansi                  1.0.4      2023-01-22 [2] CRAN (R 4.3.0)
 farver                 2.1.1      2022-07-06 [2] CRAN (R 4.3.0)
 fastmap                1.1.1      2023-02-24 [2] CRAN (R 4.3.0)
 fda                    6.0.5      2022-07-04 [2] CRAN (R 4.3.0)
 fds                    1.8        2018-10-31 [2] CRAN (R 4.3.0)
 flowAI               * 1.30.0     2023-04-25 [1] Bioconductor
 flowAssist           * 0.0.0.9000 2023-06-29 [1] Github (ssmpsn2/flowAssist@3910e63)
 flowClust            * 3.38.0     2023-04-25 [2] Bioconductor
 flowCore             * 2.12.0     2023-04-25 [2] Bioconductor
 FlowSOM              * 2.8.0      2023-04-25 [2] Bioconductor
 flowStats            * 4.12.0     2023-04-25 [2] Bioconductor
 flowTrans            * 1.52.0     2023-04-25 [1] Bioconductor
 flowViz              * 1.64.0     2023-04-25 [2] Bioconductor
 flowVS               * 1.32.0     2023-04-25 [1] Bioconductor
 flowWorkspace        * 4.12.0     2023-04-25 [2] Bioconductor
 foreach                1.5.2      2022-02-02 [2] CRAN (R 4.3.0)
 fs                     1.6.2      2023-04-25 [2] CRAN (R 4.3.0)
 future                 1.32.0     2023-03-07 [2] CRAN (R 4.3.0)
 future.apply           1.11.0     2023-05-21 [2] CRAN (R 4.3.0)
 generics               0.1.3      2022-07-05 [2] CRAN (R 4.3.0)
 GenomeInfoDb         * 1.36.1     2023-06-21 [2] Bioconductor
 GenomeInfoDbData       1.2.10     2023-05-16 [2] Bioconductor
 GenomicRanges        * 1.52.0     2023-04-25 [2] Bioconductor
 GetoptLong             1.0.5      2020-12-15 [2] CRAN (R 4.3.0)
 ggbeeswarm             0.7.2      2023-04-29 [2] CRAN (R 4.3.0)
 ggcyto               * 1.28.0     2023-04-25 [2] Bioconductor
 ggforce                0.4.1      2022-10-04 [2] CRAN (R 4.3.0)
 ggnewscale             0.4.8      2022-10-06 [2] CRAN (R 4.3.0)
 ggplot2              * 3.4.2      2023-04-03 [2] CRAN (R 4.3.0)
 ggpointdensity       * 0.1.0      2019-08-28 [2] CRAN (R 4.3.0)
 ggpubr               * 0.6.0      2023-02-10 [2] CRAN (R 4.3.0)
 ggrepel                0.9.3      2023-02-03 [2] CRAN (R 4.3.0)
 ggridges               0.5.4      2022-09-26 [2] CRAN (R 4.3.0)
 ggsignif               0.6.4      2022-10-13 [2] CRAN (R 4.3.0)
 ggthemes             * 4.2.4      2021-01-20 [2] CRAN (R 4.3.0)
 GlobalOptions          0.1.2      2020-06-10 [2] CRAN (R 4.3.0)
 globals                0.16.2     2022-11-21 [2] CRAN (R 4.3.0)
 glue                   1.6.2      2022-02-24 [2] CRAN (R 4.3.0)
 goftest              * 1.2-3      2021-10-07 [2] CRAN (R 4.3.0)
 gower                  1.0.1      2022-12-22 [2] CRAN (R 4.3.0)
 graph                  1.78.0     2023-04-25 [2] Bioconductor
 gridExtra            * 2.3        2017-09-09 [2] CRAN (R 4.3.0)
 gtable                 0.3.3      2023-03-21 [2] CRAN (R 4.3.0)
 gtools                 3.9.4      2022-11-27 [2] CRAN (R 4.3.0)
 hardhat                1.3.0      2023-03-30 [2] CRAN (R 4.3.0)
 hdrcde                 3.4        2021-01-18 [2] CRAN (R 4.3.0)
 hexbin                 1.28.3     2023-03-21 [2] CRAN (R 4.3.0)
 htmltools              0.5.5      2023-03-23 [2] CRAN (R 4.3.0)
 htmlwidgets            1.6.2      2023-03-17 [2] CRAN (R 4.3.0)
 httpuv                 1.6.11     2023-05-11 [2] CRAN (R 4.3.0)
 IDPmisc                1.1.20     2020-01-21 [2] CRAN (R 4.3.0)
 igraph               * 1.5.0      2023-06-16 [2] CRAN (R 4.3.0)
 interp                 1.1-4      2023-03-31 [2] CRAN (R 4.3.0)
 ipred                  0.9-14     2023-03-09 [2] CRAN (R 4.3.0)
 IRanges              * 2.34.1     2023-06-22 [2] Bioconductor
 irlba                  2.3.5.1    2022-10-03 [2] CRAN (R 4.3.0)
 iterators              1.0.14     2022-02-05 [2] CRAN (R 4.3.0)
 jpeg                   0.1-10     2022-11-29 [2] CRAN (R 4.3.0)
 jsonlite               1.8.5      2023-06-05 [2] CRAN (R 4.3.0)
 KernSmooth             2.23-21    2023-05-03 [2] CRAN (R 4.3.0)
 knitr                * 1.43       2023-05-25 [2] CRAN (R 4.3.0)
 ks                     1.14.0     2022-11-24 [2] CRAN (R 4.3.0)
 later                  1.3.1      2023-05-02 [2] CRAN (R 4.3.0)
 lattice              * 0.21-8     2023-04-05 [2] CRAN (R 4.3.0)
 latticeExtra           0.6-30     2022-07-04 [2] CRAN (R 4.3.0)
 lava                   1.7.2.1    2023-02-27 [2] CRAN (R 4.3.0)
 lifecycle              1.0.3      2022-10-07 [2] CRAN (R 4.3.0)
 listenv                0.9.0      2022-12-16 [2] CRAN (R 4.3.0)
 lubridate              1.9.2      2023-02-10 [2] CRAN (R 4.3.0)
 magick                 2.7.4      2023-03-09 [2] CRAN (R 4.3.0)
 magrittr               2.0.3      2022-03-30 [2] CRAN (R 4.3.0)
 MASS                   7.3-60     2023-05-04 [2] CRAN (R 4.3.0)
 Matrix               * 1.5-4.1    2023-05-18 [2] CRAN (R 4.3.0)
 MatrixGenerics       * 1.12.2     2023-06-09 [2] Bioconductor
 matrixStats          * 1.0.0      2023-06-02 [2] CRAN (R 4.3.0)
 mclust                 6.0.0      2022-10-31 [2] CRAN (R 4.3.0)
 memoise                2.0.1      2021-11-26 [2] CRAN (R 4.3.0)
 mime                   0.12       2021-09-28 [2] CRAN (R 4.3.0)
 miniUI                 0.1.1.1    2018-05-18 [2] CRAN (R 4.3.0)
 mnormt                 2.1.1      2022-09-26 [2] CRAN (R 4.3.0)
 ModelMetrics           1.2.2.2    2020-03-17 [2] CRAN (R 4.3.0)
 multcomp               1.4-23     2023-03-09 [2] CRAN (R 4.3.0)
 munsell                0.5.0      2018-06-12 [2] CRAN (R 4.3.0)
 mvtnorm                1.1-3      2021-10-08 [2] CRAN (R 4.3.0)
 NbClust              * 3.0.1      2022-05-02 [1] CRAN (R 4.3.0)
 ncdfFlow             * 2.46.0     2023-04-25 [2] Bioconductor
 nlme                   3.1-162    2023-01-31 [2] CRAN (R 4.3.0)
 nnet                   7.3-19     2023-05-03 [2] CRAN (R 4.3.0)
 nnls                   1.4        2012-03-19 [2] CRAN (R 4.3.0)
 openssl                2.0.6      2023-03-09 [2] CRAN (R 4.3.0)
 parallelly             1.36.0     2023-05-26 [2] CRAN (R 4.3.0)
 patchwork              1.1.2      2022-08-19 [2] CRAN (R 4.3.0)
 pcaPP                  2.0-3      2022-10-24 [2] CRAN (R 4.3.0)
 PeacoQC              * 1.10.0     2023-04-25 [2] Bioconductor
 pheatmap             * 1.0.12     2019-01-04 [2] CRAN (R 4.3.0)
 pillar                 1.9.0      2023-03-22 [2] CRAN (R 4.3.0)
 pkgbuild               1.4.0      2022-11-27 [2] CRAN (R 4.3.0)
 pkgconfig              2.0.3      2019-09-22 [2] CRAN (R 4.3.0)
 pkgload                1.3.2      2022-11-16 [2] CRAN (R 4.3.0)
 plotrix                3.8-2      2021-09-08 [2] CRAN (R 4.3.0)
 plyr                 * 1.8.8      2022-11-11 [2] CRAN (R 4.3.0)
 png                    0.1-8      2022-11-29 [2] CRAN (R 4.3.0)
 polyclip               1.10-4     2022-10-20 [2] CRAN (R 4.3.0)
 pracma                 2.4.2      2022-09-22 [2] CRAN (R 4.3.0)
 prettyunits            1.1.1      2020-01-24 [2] CRAN (R 4.3.0)
 pROC                   1.18.2     2023-05-13 [2] CRAN (R 4.3.0)
 processx               3.8.1      2023-04-18 [2] CRAN (R 4.3.0)
 prodlim                2023.03.31 2023-04-02 [2] CRAN (R 4.3.0)
 profvis                0.3.8      2023-05-02 [2] CRAN (R 4.3.0)
 promises               1.2.0.1    2021-02-11 [2] CRAN (R 4.3.0)
 proxy                  0.4-27     2022-06-09 [2] CRAN (R 4.3.0)
 ps                     1.7.5      2023-04-18 [2] CRAN (R 4.3.0)
 purrr                  1.0.1      2023-01-10 [2] CRAN (R 4.3.0)
 R6                     2.5.1      2021-08-19 [2] CRAN (R 4.3.0)
 rainbow                3.7        2022-10-09 [2] CRAN (R 4.3.0)
 RColorBrewer         * 1.1-3      2022-04-03 [2] CRAN (R 4.3.0)
 Rcpp                   1.0.10     2023-01-22 [2] CRAN (R 4.3.0)
 RCurl                  1.98-1.12  2023-03-27 [2] CRAN (R 4.3.0)
 recipes                1.0.6      2023-04-25 [2] CRAN (R 4.3.0)
 remotes                2.4.2      2021-11-30 [2] CRAN (R 4.3.0)
 reshape2               1.4.4      2020-04-09 [2] CRAN (R 4.3.0)
 reticulate           * 1.30       2023-06-09 [2] CRAN (R 4.3.0)
 rgl                  * 1.1.3      2023-03-26 [2] CRAN (R 4.3.0)
 Rgraphviz              2.44.0     2023-04-25 [2] Bioconductor
 rJava                  1.0-6      2021-12-10 [2] CRAN (R 4.3.0)
 rjson                  0.2.21     2022-01-09 [2] CRAN (R 4.3.0)
 rlang                  1.1.1      2023-04-28 [2] CRAN (R 4.3.0)
 rlist                  0.4.6.2    2021-09-03 [2] CRAN (R 4.3.0)
 rmarkdown              2.22       2023-06-01 [2] CRAN (R 4.3.0)
 robustbase             0.95-1     2023-03-29 [2] CRAN (R 4.3.0)
 rpart                  4.1.19     2022-10-21 [2] CRAN (R 4.3.0)
 rprojroot              2.0.3      2022-04-02 [2] CRAN (R 4.3.0)
 RProtoBufLib           2.12.0     2023-04-25 [2] Bioconductor
 rrcov                  1.7-3      2023-05-17 [2] CRAN (R 4.3.0)
 RSpectra               0.16-1     2022-04-24 [2] CRAN (R 4.3.0)
 rstatix                0.7.2      2023-02-01 [2] CRAN (R 4.3.0)
 rstudioapi           * 0.14       2022-08-22 [2] CRAN (R 4.3.0)
 rsvd                   1.0.5      2021-04-16 [2] CRAN (R 4.3.0)
 Rtsne                * 0.16       2022-04-17 [2] CRAN (R 4.3.0)
 Rttf2pt1               1.3.12     2023-01-22 [2] CRAN (R 4.3.0)
 S4Arrays               1.0.4      2023-05-14 [2] Bioconductor
 S4Vectors            * 0.38.1     2023-05-02 [2] Bioconductor
 sandwich               3.0-2      2022-06-15 [2] CRAN (R 4.3.0)
 ScaledMatrix           1.8.1      2023-05-03 [2] Bioconductor
 scales               * 1.2.1      2022-08-20 [2] CRAN (R 4.3.0)
 scater                 1.28.0     2023-04-25 [2] Bioconductor
 scuttle                1.10.1     2023-05-02 [2] Bioconductor
 sessioninfo            1.2.2      2021-12-06 [2] CRAN (R 4.3.0)
 shape                  1.4.6      2021-05-19 [2] CRAN (R 4.3.0)
 shiny                  1.7.4      2022-12-15 [2] CRAN (R 4.3.0)
 SingleCellExperiment * 1.22.0     2023-04-25 [2] Bioconductor
 sparseMatrixStats      1.12.1     2023-06-20 [2] Bioconductor
 Spectre              * 1.0.0      2023-06-21 [2] Github (immunedynamics/spectre@250fe9c)
 stringi                1.7.12     2023-01-11 [2] CRAN (R 4.3.0)
 stringr                1.5.0      2022-12-02 [2] CRAN (R 4.3.0)
 SummarizedExperiment * 1.30.2     2023-06-06 [2] Bioconductor
 survival               3.5-5      2023-03-12 [2] CRAN (R 4.3.0)
 TH.data                1.1-2      2023-04-17 [2] CRAN (R 4.3.0)
 tibble                 3.2.1      2023-03-20 [2] CRAN (R 4.3.0)
 tidyHeatmap            1.8.1      2022-05-20 [1] CRAN (R 4.3.0)
 tidyr                * 1.3.0      2023-01-24 [2] CRAN (R 4.3.0)
 tidyselect             1.2.0      2022-10-10 [2] CRAN (R 4.3.0)
 timechange             0.2.0      2023-01-11 [2] CRAN (R 4.3.0)
 timeDate               4022.108   2023-01-07 [2] CRAN (R 4.3.0)
 tweenr                 2.0.2      2022-09-06 [2] CRAN (R 4.3.0)
 umap                 * 0.2.10.0   2023-02-01 [2] CRAN (R 4.3.0)
 urlchecker             1.0.1      2021-11-30 [2] CRAN (R 4.3.0)
 usethis              * 2.1.6      2022-05-25 [2] CRAN (R 4.3.0)
 utf8                   1.2.3      2023-01-31 [2] CRAN (R 4.3.0)
 uwot                 * 0.1.15     2023-06-26 [2] CRAN (R 4.3.0)
 vctrs                  0.6.3      2023-06-14 [2] CRAN (R 4.3.0)
 vipor                  0.4.5      2017-03-22 [2] CRAN (R 4.3.0)
 viridis                0.6.3      2023-05-03 [2] CRAN (R 4.3.0)
 viridisLite            0.4.2      2023-05-02 [2] CRAN (R 4.3.0)
 withr                  2.5.0      2022-03-03 [2] CRAN (R 4.3.0)
 xfun                   0.39       2023-04-20 [2] CRAN (R 4.3.0)
 xlsx                 * 0.6.5      2020-11-10 [2] CRAN (R 4.3.0)
 xlsxjars               0.6.1      2014-08-22 [2] CRAN (R 4.3.0)
 XML                    3.99-0.14  2023-03-19 [2] CRAN (R 4.3.0)
 xtable                 1.8-4      2019-04-21 [2] CRAN (R 4.3.0)
 XVector                0.40.0     2023-04-25 [2] Bioconductor
 zlibbioc               1.46.0     2023-04-25 [2] Bioconductor
 zoo                    1.8-12     2023-04-13 [2] CRAN (R 4.3.0)

 [1] /ceph/home/q/qnguyen/R/x86_64-pc-linux-gnu-library/4.3
 [2] /ceph/package/u22/R-cbrg/current/4.3.0
 [3] /ceph/package/u22/R-base/4.3.0/lib/R/library
HelenaLC commented 1 year ago

Hm. I can't reproduce this from the information you provided. Here some thoughts...

HelenaLC commented 5 months ago

closing due to inactivity; please comment back if the issue persists/is still of interest.