2.1 library

Code
# 按需安装
install.packages("BiocManager")
BiocManager::install("scater")
BiocManager::install("scuttle")
BiocManager::install("DropletUtils")
BiocManager::install("zellkonverter")
BiocManager::install("LoomExperiment")
BiocManager::install("SingleCellExperiment")
BiocManager::install("scran")
BiocManager::install("scRNAseq")
BiocManager::install("batchelor")
BiocManager::install("robustbase")
BiocManager::install("org.Mm.eg.db")
BiocManager::install("EnsDb.Hsapiens.v86")
BiocManager::install("mbkmeans")
BiocManager::install("SingleR")

2.2 配置环境

Code
Sys.Date()
#> [1] "2024-05-07"
BiocManager::version()
#> [1] '3.18'
BiocManager::valid()
#> 
#> * sessionInfo()
#> 
#> R version 4.3.3 (2024-02-29 ucrt)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19045)
#> 
#> Matrix products: default
#> 
#> 
#> locale:
#> [1] LC_COLLATE=Chinese (Simplified)_China.utf8 
#> [2] LC_CTYPE=Chinese (Simplified)_China.utf8   
#> [3] LC_MONETARY=Chinese (Simplified)_China.utf8
#> [4] LC_NUMERIC=C                               
#> [5] LC_TIME=Chinese (Simplified)_China.utf8    
#> 
#> time zone: Asia/Shanghai
#> tzcode source: internal
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#>  [1] writexl_1.5.0       readxl_1.4.3        BiocManager_1.30.22
#>  [4] patchwork_1.2.0     lubridate_1.9.3     forcats_1.0.0      
#>  [7] stringr_1.5.1       dplyr_1.1.4         purrr_1.0.2        
#> [10] readr_2.1.5         tidyr_1.3.1         tibble_3.2.1       
#> [13] ggplot2_3.5.1       tidyverse_2.0.0     conflicted_1.2.0   
#> 
#> loaded via a namespace (and not attached):
#>  [1] utf8_1.2.4        generics_0.1.3    stringi_1.8.3     hms_1.1.3        
#>  [5] digest_0.6.35     magrittr_2.0.3    evaluate_0.23     grid_4.3.3       
#>  [9] timechange_0.3.0  fastmap_1.1.1     cellranger_1.1.0  jsonlite_1.8.8   
#> [13] fansi_1.0.6       scales_1.3.0      cli_3.6.2         rlang_1.1.3      
#> [17] munsell_0.5.1     yaml_2.3.8        withr_3.0.0       cachem_1.0.8     
#> [21] tools_4.3.3       tzdb_0.4.0        memoise_2.0.1     colorspace_2.1-0 
#> [25] vctrs_0.6.5       R6_2.5.1          lifecycle_1.0.4   htmlwidgets_1.6.4
#> [29] pkgconfig_2.0.3   pillar_1.9.0      gtable_0.3.5      glue_1.7.0       
#> [33] xfun_0.43         tidyselect_1.2.1  rstudioapi_0.16.0 knitr_1.46       
#> [37] htmltools_0.5.8.1 rmarkdown_2.26    compiler_4.3.3   
#> 
#> Bioconductor version '3.18'
#> 
#>   * 11 packages out-of-date
#>   * 0 packages too new
#> 
#> create a valid installation with
#> 
#>   BiocManager::install(c(
#>     "apcluster", "BiocManager", "brio", "fs", "ggpp", "labelled", "ragg", "sp",
#>     "stringi", "tinytex", "xopen"
#>   ), update = TRUE, ask = FALSE, force = TRUE)
#> 
#> more details: BiocManager::valid()$too_new, BiocManager::valid()$out_of_date
devtools::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.3.3 (2024-02-29 ucrt)
#>  os       Windows 10 x64 (build 19045)
#>  system   x86_64, mingw32
#>  ui       RTerm
#>  language en
#>  collate  Chinese (Simplified)_China.utf8
#>  ctype    Chinese (Simplified)_China.utf8
#>  tz       Asia/Shanghai
#>  date     2024-05-07
#>  pandoc   3.1.11 @ D:/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version date (UTC) lib source
#>  BiocManager * 1.30.22 2023-08-08 [1] CRAN (R 4.3.3)
#>  cachem        1.0.8   2023-05-01 [1] CRAN (R 4.3.3)
#>  cellranger    1.1.0   2016-07-27 [1] CRAN (R 4.3.3)
#>  cli           3.6.2   2023-12-11 [1] CRAN (R 4.3.3)
#>  colorspace    2.1-0   2023-01-23 [1] CRAN (R 4.3.3)
#>  conflicted  * 1.2.0   2023-02-01 [1] CRAN (R 4.3.3)
#>  devtools      2.4.5   2022-10-11 [1] CRAN (R 4.3.3)
#>  digest        0.6.35  2024-03-11 [1] CRAN (R 4.3.3)
#>  dplyr       * 1.1.4   2023-11-17 [1] CRAN (R 4.3.3)
#>  ellipsis      0.3.2   2021-04-29 [1] CRAN (R 4.3.3)
#>  evaluate      0.23    2023-11-01 [1] CRAN (R 4.3.3)
#>  fansi         1.0.6   2023-12-08 [1] CRAN (R 4.3.3)
#>  fastmap       1.1.1   2023-02-24 [1] CRAN (R 4.3.3)
#>  forcats     * 1.0.0   2023-01-29 [1] CRAN (R 4.3.3)
#>  fs            1.6.3   2023-07-20 [1] CRAN (R 4.3.3)
#>  generics      0.1.3   2022-07-05 [1] CRAN (R 4.3.3)
#>  ggplot2     * 3.5.1   2024-04-23 [1] CRAN (R 4.3.3)
#>  glue          1.7.0   2024-01-09 [1] CRAN (R 4.3.3)
#>  gtable        0.3.5   2024-04-22 [1] CRAN (R 4.3.3)
#>  hms           1.1.3   2023-03-21 [1] CRAN (R 4.3.3)
#>  htmltools     0.5.8.1 2024-04-04 [1] CRAN (R 4.3.3)
#>  htmlwidgets   1.6.4   2023-12-06 [1] CRAN (R 4.3.3)
#>  httpuv        1.6.15  2024-03-26 [1] CRAN (R 4.3.3)
#>  jsonlite      1.8.8   2023-12-04 [1] CRAN (R 4.3.3)
#>  knitr         1.46    2024-04-06 [1] CRAN (R 4.3.3)
#>  later         1.3.2   2023-12-06 [1] CRAN (R 4.3.3)
#>  lifecycle     1.0.4   2023-11-07 [1] CRAN (R 4.3.3)
#>  lubridate   * 1.9.3   2023-09-27 [1] CRAN (R 4.3.3)
#>  magrittr      2.0.3   2022-03-30 [1] CRAN (R 4.3.3)
#>  memoise       2.0.1   2021-11-26 [1] CRAN (R 4.3.3)
#>  mime          0.12    2021-09-28 [1] CRAN (R 4.3.1)
#>  miniUI        0.1.1.1 2018-05-18 [1] CRAN (R 4.3.3)
#>  munsell       0.5.1   2024-04-01 [1] CRAN (R 4.3.3)
#>  patchwork   * 1.2.0   2024-01-08 [1] CRAN (R 4.3.3)
#>  pillar        1.9.0   2023-03-22 [1] CRAN (R 4.3.3)
#>  pkgbuild      1.4.4   2024-03-17 [1] CRAN (R 4.3.3)
#>  pkgconfig     2.0.3   2019-09-22 [1] CRAN (R 4.3.3)
#>  pkgload       1.3.4   2024-01-16 [1] CRAN (R 4.3.3)
#>  profvis       0.3.8   2023-05-02 [1] CRAN (R 4.3.3)
#>  promises      1.3.0   2024-04-05 [1] CRAN (R 4.3.3)
#>  purrr       * 1.0.2   2023-08-10 [1] CRAN (R 4.3.3)
#>  R6            2.5.1   2021-08-19 [1] CRAN (R 4.3.3)
#>  Rcpp          1.0.12  2024-01-09 [1] CRAN (R 4.3.3)
#>  readr       * 2.1.5   2024-01-10 [1] CRAN (R 4.3.3)
#>  readxl      * 1.4.3   2023-07-06 [1] CRAN (R 4.3.3)
#>  remotes       2.5.0   2024-03-17 [1] CRAN (R 4.3.3)
#>  rlang         1.1.3   2024-01-10 [1] CRAN (R 4.3.3)
#>  rmarkdown     2.26    2024-03-05 [1] CRAN (R 4.3.3)
#>  rstudioapi    0.16.0  2024-03-24 [1] CRAN (R 4.3.3)
#>  scales        1.3.0   2023-11-28 [1] CRAN (R 4.3.3)
#>  sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.3.3)
#>  shiny         1.8.1.1 2024-04-02 [1] CRAN (R 4.3.3)
#>  stringi       1.8.3   2023-12-11 [1] CRAN (R 4.3.2)
#>  stringr     * 1.5.1   2023-11-14 [1] CRAN (R 4.3.3)
#>  tibble      * 3.2.1   2023-03-20 [1] CRAN (R 4.3.3)
#>  tidyr       * 1.3.1   2024-01-24 [1] CRAN (R 4.3.3)
#>  tidyselect    1.2.1   2024-03-11 [1] CRAN (R 4.3.3)
#>  tidyverse   * 2.0.0   2023-02-22 [1] CRAN (R 4.3.3)
#>  timechange    0.3.0   2024-01-18 [1] CRAN (R 4.3.3)
#>  tzdb          0.4.0   2023-05-12 [1] CRAN (R 4.3.3)
#>  urlchecker    1.0.1   2021-11-30 [1] CRAN (R 4.3.3)
#>  usethis       2.2.3   2024-02-19 [1] CRAN (R 4.3.3)
#>  utf8          1.2.4   2023-10-22 [1] CRAN (R 4.3.3)
#>  vctrs         0.6.5   2023-12-01 [1] CRAN (R 4.3.3)
#>  withr         3.0.0   2024-01-16 [1] CRAN (R 4.3.3)
#>  writexl     * 1.5.0   2024-02-09 [1] CRAN (R 4.3.3)
#>  xfun          0.43    2024-03-25 [1] CRAN (R 4.3.3)
#>  xtable        1.8-4   2019-04-21 [1] CRAN (R 4.3.3)
#>  yaml          2.3.8   2023-12-11 [1] CRAN (R 4.3.2)
#> 
#>  [1] D:/R-4.3.3/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────