Closed sdwang008 closed 5 months ago
Very quick update: this error happens on a managed hpc environment. When I moved to my own computer the error does not occur. Although I'm still not clear on why this is happening. Is it a version issue?
Local sessionInfo:
R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.3.1
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: America/New_York
tzcode source: internal
attached base packages:
[1] stats4 stats graphics grDevices utils datasets methods base
other attached packages:
[1] variancePartition_1.32.5 BiocParallel_1.36.0 limma_3.58.1
[4] ggplot2_3.5.0 DESeq2_1.42.0 SummarizedExperiment_1.32.0
[7] Biobase_2.62.0 MatrixGenerics_1.14.0 matrixStats_1.2.0
[10] GenomicRanges_1.54.1 GenomeInfoDb_1.38.6 IRanges_2.36.0
[13] S4Vectors_0.40.2 BiocGenerics_0.48.1
loaded via a namespace (and not attached):
[1] tidyselect_1.2.0 farver_2.1.1 dplyr_1.1.4
[4] bitops_1.0-7 fastmap_1.1.1 RCurl_1.98-1.14
[7] digest_0.6.34 lifecycle_1.0.4 statmod_1.5.0
[10] magrittr_2.0.3 compiler_4.3.1 rlang_1.1.3
[13] tools_4.3.1 utf8_1.2.4 knitr_1.45
[16] labeling_0.4.3 S4Arrays_1.2.0 DelayedArray_0.28.0
[19] plyr_1.8.9 abind_1.4-5 KernSmooth_2.23-22
[22] withr_3.0.0 purrr_1.0.2 numDeriv_2016.8-1.1
[25] grid_4.3.1 aod_1.3.3 fansi_1.0.6
[28] caTools_1.18.2 colorspace_2.1-0 scales_1.3.0
[31] gtools_3.9.5 iterators_1.0.14 MASS_7.3-60.0.1
[34] mvtnorm_1.2-4 cli_3.6.2 crayon_1.5.2
[37] generics_0.1.3 rstudioapi_0.15.0 reshape2_1.4.4
[40] minqa_1.2.6 stringr_1.5.1 zlibbioc_1.48.0
[43] splines_4.3.1 parallel_4.3.1 XVector_0.42.0
[46] vctrs_0.6.5 boot_1.3-30 Matrix_1.6-5
[49] pbkrtest_0.5.2 locfit_1.5-9.8 tidyr_1.3.1
[52] glue_1.7.0 nloptr_2.0.3 codetools_0.2-19
[55] stringi_1.8.3 gtable_0.3.4 EnvStats_2.8.1
[58] lme4_1.1-35.1 lmerTest_3.1-3 munsell_0.5.0
[61] tibble_3.2.1 remaCor_0.0.18 pillar_1.9.0
[64] htmltools_0.5.7 gplots_3.1.3.1 GenomeInfoDbData_1.2.11
[67] R6_2.5.1 Rdpack_2.6 lattice_0.22-5
[70] rbibutils_2.2.16 backports_1.4.1 RhpcBLASctl_0.23-42
[73] broom_1.0.5 fANCOVA_0.6-1 corpcor_1.6.10
[76] Rcpp_1.0.12 SparseArray_1.2.4 nlme_3.1-164
[79] xfun_0.42 pkgconfig_2.0.3
It looks like it’s a bug in variancePartition_1.30.2 that’s been fixed in variancePartition_1.32.5
Hello, I have run into this error when running
fitExtractVarPartModel
:Error in if (inherits(possibleError, "error") && grep("the fixed-effects model matrix is column rank deficient", : missing value where TRUE/FALSE needed
I see that this issue has been reported several times and it's usually have to do with the formula design or levels not having enough observations, but even when I reduce it to a very simple formula, I still get this error.
Currently I have a 1000x200 (gene x sample) matrix object, and my formula is
~ Age + (1 | Smoker)
which should be simple enough.Age
is continuous andSmoker
is binary (Yes or No). No NAs in either columns.Full error:
sessionInfo:
Please share some advice on why this error is happening. Thanks!