|
| 1 | +# Installation tips for Monocle3 on O2 |
| 2 | + |
| 3 | +## You need to have certain modules loaded in your terminal or O2 Portal session |
| 4 | + |
| 5 | +1. Load required modules |
| 6 | + |
| 7 | +- `udunits` is required to install the `units` R package |
| 8 | +- `gdal`, `geos`, and, `proj` are required to install the `sf` R package |
| 9 | + |
| 10 | +Terminal: |
| 11 | +``` |
| 12 | +ml gcc/14.2.0 |
| 13 | +ml udunits/2.2.28 gdal/3.11.3 geos/3.13.1 proj/9.6.2 R/4.4.2 |
| 14 | +``` |
| 15 | + |
| 16 | +Package list to request O2 Portal RStudio session: |
| 17 | +``` |
| 18 | +gcc/14.2.0 udunits/2.2.28 gdal/3.11.3 geos/3.13.1 proj/9.6.2 R/4.4.2 |
| 19 | +``` |
| 20 | + |
| 21 | +2. Start R |
| 22 | + |
| 23 | +3. Define your personal R package library |
| 24 | + |
| 25 | +We recommend making a separate library for each version of R. |
| 26 | + |
| 27 | +``` |
| 28 | +userlib <- "~/R/4.4.2" |
| 29 | +``` |
| 30 | + |
| 31 | +4. Install `units` |
| 32 | + |
| 33 | +``` |
| 34 | +install.packages("units", lib = userlib, type = "source", repos = "https://cloud.r-project.org") |
| 35 | +``` |
| 36 | + |
| 37 | +5. Install `sf` |
| 38 | + |
| 39 | +``` |
| 40 | +install.packages("sf", lib = userlib, type = "source", repos = "https://cloud.r-project.org") |
| 41 | +``` |
| 42 | + |
| 43 | +6. Install `spdep` |
| 44 | + |
| 45 | +``` |
| 46 | +install.packages("spdep", lib = userlib, type = "source", repos = "https://cloud.r-project.org") |
| 47 | +
|
| 48 | +``` |
| 49 | + |
| 50 | +7. Install the packages that [Monocle3](https://cole-trapnell-lab.github.io/monocle3/docs/installation/) actually tells you that it needs |
| 51 | +``` |
| 52 | +remotes::install_github('satijalab/seurat-wrappers') |
| 53 | +BiocManager::install(c('BiocGenerics', 'DelayedArray', 'DelayedMatrixStats', 'limma', |
| 54 | + 'lme4', 'S4Vectors', 'SingleCellExperiment', 'SummarizedExperiment', |
| 55 | + 'batchelor', 'HDF5Array', 'ggrastr'), |
| 56 | + lib = userlib, lib.loc = userlib) |
| 57 | +remotes::install_github("bnprks/BPCells/r") |
| 58 | +remotes::install_github("cole-trapnell-lab/monocle3", lib = userlib, dependencies = FALSE) |
| 59 | +``` |
0 commit comments