Closed LuyiTian closed 5 years ago
I put the same data on my Macs with the same code and it runs, but sometimes SC3 just keep running forever without any
increase in the progression bar:
|============= | 10%
the dataset I am running only contains ~300 cells and I select 1000 highly variable genes. So it should take too long.
It does not give any error message so I have no idea how to debug. It is data independent.
Hi @LuyiTian, can you post the sequence of commands you are running?
Going through the code maybe you could try n_cores = 1
Cheers
Sorry, I couldn't reproduce. I've done the following and it worked ok on my Mac:
library(SC3)
library(SingleCellExperiment)
load("9cellmix_qc.RData")
rowData(sce_9cells_qc)$feature_symbol <- rownames(sce_9cells_qc)
logcounts(sce_9cells_qc) <- log2(counts(sce_9cells_qc) + 1)
sce_9cells_qc <- sc3(sce_9cells_qc, ks = 2:4)
Here is the session info:
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] parallel stats4 stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] shiny_1.2.0 SingleCellExperiment_1.4.0
[3] SummarizedExperiment_1.12.0 DelayedArray_0.8.0
[5] BiocParallel_1.16.2 matrixStats_0.54.0
[7] Biobase_2.42.0 GenomicRanges_1.34.0
[9] GenomeInfoDb_1.18.1 IRanges_2.16.0
[11] S4Vectors_0.20.1 BiocGenerics_0.28.0
[13] SC3_1.10.0
loaded via a namespace (and not attached):
[1] jsonlite_1.5 foreach_1.4.4 gtools_3.8.1
[4] assertthat_0.2.0 doRNG_1.7.1 GenomeInfoDbData_1.2.0
[7] robustbase_0.93-3 pillar_1.3.0 lattice_0.20-35
[10] glue_1.3.0 digest_0.6.18 promises_1.0.1
[13] RColorBrewer_1.1-2 XVector_0.22.0 colorspace_1.3-2
[16] htmltools_0.3.6 httpuv_1.4.5 Matrix_1.2-14
[19] plyr_1.8.4 pcaPP_1.9-73 WriteXLS_4.0.0
[22] pkgconfig_2.0.2 bibtex_0.4.2 pheatmap_1.0.10
[25] zlibbioc_1.28.0 purrr_0.2.5 xtable_1.8-3
[28] mvtnorm_1.0-8 scales_1.0.0 gdata_2.18.0
[31] later_0.7.5 tibble_1.4.2 pkgmaker_0.27
[34] ggplot2_3.1.0 withr_2.1.2 ROCR_1.0-7
[37] lazyeval_0.2.1 mime_0.6 magrittr_1.5
[40] crayon_1.3.4 doParallel_1.0.14 gplots_3.0.1
[43] class_7.3-14 tools_3.5.1 registry_0.5
[46] stringr_1.3.1 munsell_0.5.0 cluster_2.0.7-1
[49] rngtools_1.3.1 bindrcpp_0.2.2 compiler_3.5.1
[52] e1071_1.7-0 caTools_1.17.1.1 rlang_0.3.0.1
[55] grid_3.5.1 RCurl_1.95-4.11 iterators_1.0.10
[58] labeling_0.3 bitops_1.0-6 gtable_0.2.0
[61] codetools_0.2-15 rrcov_1.4-7 R6_2.3.0
[64] dplyr_0.7.8 bindr_0.1.1 KernSmooth_2.23-15
[67] stringi_1.2.4 Rcpp_1.0.0 DEoptimR_1.0-8
[70] tidyselect_0.2.5
Here is the screenshot of sc3_interactive()
:
Can you share you script? Everything you ran before SC3
?
I realized the crash happens either when I supply a KNN smooth generated count matrix or when I use multi-core. For the KNN I guess it is because KNN smooth will give some cells identical exprs value and it might cause singularity in some matrix operation.
I have no idea why multi-core does not work. I do notice when I stopped the R console, there are still some R running on the background, which seems out of control.
Thanks for updating. On the server the parallelism logic of SC3 may conflict with the system architecture, sorry won't be able to help there.
I have got an error running sc3 on the Linux server. The error message is:
which looks similar to some previous issues:
https://github.com/hemberg-lab/SC3/issues/53 https://github.com/hemberg-lab/SC3/issues/74
but I tried all the solution and nothing works. The matrix in SCE is not sparse.
and the sessioninfo is:
It is running on my benchmark dataset which is just normal CEL-seq2 and 10x dataset: https://github.com/LuyiTian/CellBench_data/tree/master/data. they are not very big.