Skip to content

cyto_transform(gs) Error: 'trans' must be a list of transformer objects  #261

@EmelineFavreau

Description

@EmelineFavreau

Describe the bug
cyto_transform(gs) is giving a new error: Error: 'trans' must be a list of transformer objects (generated by scales::trans_new method)

To Reproduce
Follow the vignette: https://dillonhammill.github.io/CytoExploreR/articles/CytoExploreR.html

# Bioconductor
install.packages("BiocManager")
# Install cytoinstaller
remotes::install_github("RGLab/cytoinstaller")
# Install cytoverse packages
cytoinstaller::install_cyto(bioc_ver = "devel")
# CytoExploreRData 
devtools::install_github("DillonHammill/CytoExploreRData")
# CytoExploreR 
devtools::install_github("DillonHammill/CytoExploreR")
# Load required packages
library(CytoExploreR)
library(CytoExploreRData)

# Compensation FCS Files
cyto_save(Compensation, 
          save_as = "Compensation-Samples")

# Activation FCS Files
cyto_save(Activation,
          save_as = "Activation-Samples")

# Setup compensation controls
gs <- cyto_setup("Compensation-Samples",
                 gatingTemplate = "Compensation-gatingTemplate.csv")

# Transform fluorescent channels - default logicle transformations
gs <- cyto_transform(gs)

Expected behavior
I expected the object to be created without error (which was the case two weeks ago when I last ran it)

sessionInfo():

R version 4.3.0 (2023-04-21)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.5.2

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/London
tzcode source: internal

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

other attached packages:
 [1] CytoExploreRData_1.0.3 shiny_1.8.0            cytoqc_0.99.2          strex_1.6.1            stringr_1.5.1          flowAI_1.30.0          dplyr_1.1.4           
 [8] magrittr_2.0.3         CytoExploreR_1.1.0     openCyto_2.12.0        flowWorkspace_4.12.1   flowCore_2.12.2       

loaded via a namespace (and not attached):
  [1] RBGL_1.76.0         remotes_2.4.2.1     rlang_1.1.2         matrixStats_1.1.0   compiler_4.3.0      callr_3.7.3         png_0.1-8           systemfonts_1.0.5   vctrs_0.6.4        
 [10] reshape2_1.4.4      profvis_0.3.8       rvest_1.0.3         pkgconfig_2.0.3     crayon_1.5.2        fastmap_1.1.1       ellipsis_0.3.2      utf8_1.2.4          promises_1.2.1     
 [19] ncdfFlow_2.46.0     rmarkdown_2.25      sessioninfo_1.2.2   ps_1.7.5            graph_1.78.0        purrr_1.0.2         xfun_0.41           zlibbioc_1.46.0     cachem_1.0.8       
 [28] jsonlite_1.8.7      later_1.3.1         prettyunits_1.2.0   parallel_4.3.0      R6_2.5.1            bslib_0.6.0         stringi_1.8.2       RColorBrewer_1.1-3  reticulate_1.34.0  
 [37] pkgload_1.3.3       jquerylib_0.1.4     Rcpp_1.0.11         knitr_1.45          usethis_2.2.2       zoo_1.8-12          httpuv_1.6.12       Matrix_1.6-3        tidyselect_1.2.0   
 [46] yaml_2.3.7          rstudioapi_0.15.0   miniUI_0.1.1.1      curl_5.1.0          processx_3.8.2      pkgbuild_1.4.2      lattice_0.22-5      tibble_3.2.1        plyr_1.8.9         
 [55] Biobase_2.60.0      askpass_1.2.0       evaluate_0.23       Rtsne_0.16          EmbedSOM_2.1.2      desc_1.4.2          urlchecker_1.0.1    xml2_1.3.5          pillar_1.9.0       
 [64] KernSmooth_2.23-22  DT_0.30             stats4_4.3.0        generics_0.1.3      rprojroot_2.0.4     S4Vectors_0.38.2    ggplot2_3.4.4       munsell_0.5.0       scales_1.3.0       
 [73] xtable_1.8-4        glue_1.6.2          changepoint_2.2.4   tools_4.3.0         colortable_0.3.0    robustbase_0.99-0   data.table_1.14.8   RSpectra_0.16-1     webshot_0.5.5      
 [82] fs_1.6.3            visNetwork_2.1.2    XML_3.99-0.15       grid_4.3.0          flowClust_3.38.0    tidyr_1.3.0         RProtoBufLib_2.12.1 umap_0.2.10.0       devtools_2.4.5     
 [91] colorspace_2.1-0    cli_3.6.1           rsvd_1.0.5          kableExtra_1.3.4    rhandsontable_0.3.8 fansi_1.0.5         cytolib_2.12.1      viridisLite_0.4.2   svglite_2.1.2      
[100] Rgraphviz_2.44.0    gtable_0.3.4        DEoptimR_1.1-3      sass_0.4.7          digest_0.6.33       BiocGenerics_0.46.0 htmlwidgets_1.6.3   memoise_2.0.1       htmltools_0.5.7    
[109] lifecycle_1.0.4     httr_1.4.7          mime_0.12           openssl_2.1.1       MASS_7.3-60        

Additional context
I have been running this code several times without an issue, and now I see this issue. I do not understand why. Is it something to do with the package scales?
Screenshot 2023-12-08 at 16 31 41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions