Hi everyone,
I have a small dataset, Its composed of resistant cell lines and their parental. There’s only one parental per line. And there are no more than 5 clones, in some cases just one.
Also, MUTATION block does have NA values, but I still get the same error message wherever I use It or not.
When I try to run tune.block.splsda
test.keepX = list (CNV = c(25,25),
MUTATION = c(25,25),
RNA = c(25,25),
ENHANCER = c(25,25),
PROMOTER = c(25,25))
tune.TCGA = tune.block.splsda(X = diablo_input, Y = diablo_metadata, ncomp = 2,
test.keepX = test.keepX, design = design,
validation = 'loo', folds = 5, nrepeat = 1,
dist = "centroids.dist",max.iter = 200)
Design matrix has changed to include Y; each block will be
linked to Y.You have provided a sequence of keepX of length: 2 for block CNV and 2 for block MUTATION and 2 for block RNA and 2 for block ENHANCER and 2 for block PROMOTER.
This results in 32 models being fitted for each component and each nrepeat, this may take some time to run, be patient!You can look into the ‘BPPARAM’ argument to speed up computation time.
Error in 1:n : NA/NaN argument
Does anybody have some idea? I leave a link to the Robject.
Also, I would like to ask If, with this many samples, this has any statistical sense at all.
sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTSMatrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=Cattached base packages:
[1] stats graphics grDevices utils datasets methods baseother attached packages:
[1] data.table_1.14.4 forcats_0.5.2 stringr_1.4.1 purrr_0.3.5 readr_2.1.3 tidyverse_1.3.2 pheatmap_1.0.12
[8] tibble_3.1.8 tidyr_1.2.1 mixOmics_6.19.3 ggplot2_3.3.6 lattice_0.20-45 MASS_7.3-58 dplyr_1.0.10loaded via a namespace (and not attached):
[1] matrixStats_0.62.0 fs_1.5.2 lubridate_1.8.0 METACLUSTER_1.0.0 bit64_4.0.5 RColorBrewer_1.1-3
[7] httr_1.4.4 rprojroot_2.0.3 tools_4.2.1 backports_1.4.1 utf8_1.2.2 R6_2.5.1
[13] DBI_1.1.3 colorspace_2.0-3 withr_2.5.0 prettyunits_1.1.1 processx_3.7.0 tidyselect_1.2.0
[19] gridExtra_2.3 curl_4.3.3 bit_4.0.4 compiler_4.2.1 cli_3.4.1 rvest_1.0.3
[25] xml2_1.3.3 labeling_0.4.2 scales_1.2.1 callr_3.7.2 digest_0.6.30 rmarkdown_2.17
[31] pkgconfig_2.0.3 htmltools_0.5.4 dbplyr_2.2.1 fastmap_1.1.0 rlang_1.0.6 readxl_1.4.1
[37] rstudioapi_0.14 farver_2.1.1 generics_0.1.3 jsonlite_1.8.3 BiocParallel_1.30.4 vroom_1.6.0
[43] googlesheets4_1.0.1 magrittr_2.0.3 Matrix_1.5-1 Rcpp_1.0.9 munsell_0.5.0 fansi_1.0.3
[49] lifecycle_1.0.3 stringi_1.7.8 yaml_2.3.6 pkgbuild_1.3.1 plyr_1.8.7 grid_4.2.1
[55] parallel_4.2.1 ggrepel_0.9.1 crayon_1.5.2 haven_2.5.1 hms_1.1.2 ps_1.7.1
[61] knitr_1.40 pillar_1.8.1 igraph_1.4.0 corpcor_1.6.10 reshape2_1.4.4 codetools_0.2-18
[67] reprex_2.0.2 glue_1.6.2 evaluate_0.17 remotes_2.4.2 BiocManager_1.30.18 modelr_0.1.9
[73] vctrs_0.5.0 tzdb_0.3.0 cellranger_1.1.0 gtable_0.3.1 assertthat_0.2.1 xfun_0.34
[79] broom_1.0.1 RSpectra_0.16-1 googledrive_2.0.0 gargle_1.2.1 rARPACK_0.11-0 ellipse_0.4.3
[85] ellipsis_0.3.2