Closed volkansevim closed 2 years ago
I am unable to replicate this with pbmc3k dataset.
> library(ggplot2)
> library(sctransform)
pbmc_data <- Read10X(data.dir = "./data/pbmc3k/filtered_gene_bc_matrices/hg19/")
pbmc <- CreateSeuratObject(counts = pbmc_data)
Warning: Feature names cannot have underscores ('_'), replacing with dashes ('-')
pbmc <- PercentageFeatureSet(pbmc, pattern = "^MT-", col.name = "percent.mt")
> pbmc <- SCTransform(pbmc, verbose = TRUE)
Calculating cell attributes from input UMI matrix: log_umi
Variance stabilizing transformation of count matrix of size 12572 by 2700
Model formula is y ~ log_umi
Get Negative Binomial regression parameters per gene
Using 2000 genes, 2700 cells
|====================================================================================| 100%
Found 147 outliers - those will be ignored in fitting/regularization step
Second step: Get residuals using fitted parameters for 12572 genes
|====================================================================================| 100%
Computing corrected count matrix for 12572 genes
|====================================================================================| 100%
Calculating gene attributes
Wall clock passed: Time difference of 27.15488 secs
Determine variable features
Place corrected count matrix in counts slot
Centering data matrix
|====================================================================================| 100%
Set default assay to SCT
> pbmc <- SCTransform(pbmc, verbose = TRUE, method="glmGamPoi")
Calculating cell attributes from input UMI matrix: log_umi
Variance stabilizing transformation of count matrix of size 12572 by 2700
Model formula is y ~ log_umi
Get Negative Binomial regression parameters per gene
Using 2000 genes, 2700 cells
|=====================================================================================| 100%
Found 183 outliers - those will be ignored in fitting/regularization step
Second step: Get residuals using fitted parameters for 12572 genes
|=====================================================================================| 100%
Computing corrected count matrix for 12572 genes
|=====================================================================================| 100%
Calculating gene attributes
Wall clock passed: Time difference of 16.22976 secs
Determine variable features
Place corrected count matrix in counts slot
Centering data matrix
|=====================================================================================| 100%
Set default assay to SCT
What is the output of
anyNA(pbmc_data)
anyNA(pbmc_data) is FALSE.
I just created a new conda environment and installed Seurat on it. SCTransform works fine under the new env. Below is the session info.
I'm closing the issue as my problem has been solved.
> sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS
Matrix products: default
BLAS/LAPACK: /home/aaa/software/anaconda3/envs/Renv/lib/libopenblasp-r0.3.20.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] 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
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] sctransform_0.3.3 ggplot2_3.3.6 sp_1.4-7
[4] SeuratObject_4.1.0 Seurat_4.1.1 BiocManager_1.30.18
loaded via a namespace (and not attached):
[1] Rtsne_0.16 colorspace_2.0-3 deldir_1.0-6
[4] ellipsis_0.3.2 ggridges_0.5.3 IRdisplay_1.1
[7] base64enc_0.1-3 spatstat.data_2.2-0 leiden_0.4.2
[10] listenv_0.8.0 ggrepel_0.9.1 fansi_1.0.3
[13] codetools_0.2-18 splines_4.1.3 polyclip_1.10-0
[16] IRkernel_1.3 jsonlite_1.8.0 ica_1.0-2
[19] cluster_2.1.3 png_0.1-7 rgeos_0.5-9
[22] uwot_0.1.11 shiny_1.7.1 spatstat.sparse_2.1-1
[25] compiler_4.1.3 httr_1.4.3 assertthat_0.2.1
[28] Matrix_1.4-1 fastmap_1.1.0 lazyeval_0.2.2
[31] cli_3.3.0 later_1.3.0 htmltools_0.5.2
[34] tools_4.1.3 igraph_1.3.1 gtable_0.3.0
[37] glue_1.6.2 RANN_2.6.1 reshape2_1.4.4
[40] dplyr_1.0.9 Rcpp_1.0.8.3 scattermore_0.8
[43] vctrs_0.4.1 nlme_3.1-157 progressr_0.10.0
[46] lmtest_0.9-40 spatstat.random_2.2-0 stringr_1.4.0
[49] globals_0.15.0 mime_0.12 miniUI_0.1.1.1
[52] lifecycle_1.0.1 irlba_2.3.5 goftest_1.2-3
[55] future_1.25.0 MASS_7.3-57 zoo_1.8-10
[58] scales_1.2.0 spatstat.core_2.4-4 promises_1.2.0.1
[61] spatstat.utils_2.3-1 parallel_4.1.3 RColorBrewer_1.1-3
[64] reticulate_1.25 pbapply_1.5-0 gridExtra_2.3
[67] rpart_4.1.16 stringi_1.7.6 repr_1.1.4
[70] rlang_1.0.2 pkgconfig_2.0.3 matrixStats_0.62.0
[73] evaluate_0.15 lattice_0.20-45 ROCR_1.0-11
[76] purrr_0.3.4 tensor_1.5 patchwork_1.1.1
[79] htmlwidgets_1.5.4 cowplot_1.1.1 tidyselect_1.1.2
[82] parallelly_1.31.1 RcppAnnoy_0.0.19 plyr_1.8.7
[85] magrittr_2.0.3 R6_2.5.1 generics_0.1.2
[88] pbdZMQ_0.3-7 DBI_1.1.2 pillar_1.7.0
[91] withr_2.5.0 mgcv_1.8-40 fitdistrplus_1.1-8
[94] survival_3.3-1 abind_1.4-5 tibble_3.1.7
[97] future.apply_1.9.0 crayon_1.5.1 uuid_1.1-0
[100] KernSmooth_2.23-20 utf8_1.2.2 spatstat.geom_2.4-0
[103] plotly_4.10.0 grid_4.1.3 data.table_1.14.2
[106] digest_0.6.29 xtable_1.8-4 tidyr_1.2.0
[109] httpuv_1.6.5 munsell_0.5.0 viridisLite_0.4.0
SCtransform crashes running on the pbmc3k dataset. It hangs when running on my dataset.
I re-installed sctransform from github before testing this:
devtools::install_github("satijalab/sctransform", ref="develop")
Using
method=glmGamPoi
produces a different error:sessionInfo()