Seurat version 5 (https://satijalab.org/seurat/) is available on the Hoffman2 Cluster under these environmental modules combination:
module load gcc/10.2.0; module load R/4.3.0; module load glpk/5.0
NOTE: in case your R library contains some packages that interfere with this installation of Seurat you should consider removing the directory $HOME/R/x86_64-pc-linux-gnu-library-RH7/4.2.2/gcc10.2.0_intel2022.1.1 and start afresh. Make sure also that your $HOME/.Rprofile is not hardcoding any specific version of R.
qrsh -l h_data=10G
module load gcc/10.2.0; module load R/4.3.0; module load glpk/5.0
mkdir $HOME/R_SEURAT5_GUIDED_CLUSTERING_TUTORIAL; cd $HOME/R_SEURAT5_GUIDED_CLUSTERING_TUTORIAL
cp /u/local/apps/R/R_TUTORIALS/SEURAT5_GUIDED_CLUSTERING_TUTORIAL/pbmc3k_filtered_gene_bc_matrices.tar.gz ./
cp /u/local/apps/R/R_TUTORIALS/SEURAT5_GUIDED_CLUSTERING_TUTORIAL/test_seurat_clustering.R ./
tar xvr pbmc3k_filtered_gene_bc_matrices.tar.gz
R
and at the R prompt issue:
source("test_seurat_clustering.R")
Running Seurat v5 via Jupyter
python h2jupyb -u joebruin -b glpk/5.0 -m 10 #add any other needed request
where you will replace `joebruin` with your actual Hoffman2 Cluster user name.
When the jupyter session starts on your browser open an R session selecting the kernel:
R 4.3.0 gcc 10.2.0
a sample jupyter notebook is available at:
/u/local/apps/R/R_TUTORIALS/SEURAT5_GUIDED_CLUSTERING_TUTORIAL/Seurat\ -\ Guided\ Clustering\ Tutorial.ipynb
you will need to open a terminal and:
mkdir $HOME/R_SEURAT5_GUIDED_CLUSTERING_TUTORIAL; cd $HOME/R_SEURAT5_GUIDED_CLUSTERING_TUTORIAL
cp /u/local/apps/R/R_TUTORIALS/SEURAT5_GUIDED_CLUSTERING_TUTORIAL/pbmc3k_filtered_gene_bc_matrices.tar.gz ./
cp /u/local/apps/R/R_TUTORIALS/SEURAT5_GUIDED_CLUSTERING_TUTORIAL/Seurat\ -\ Guided\ Clustering\ Tutorial.ipynb ./
from the Jupyter interface you can then navigate to the newly created R_SEURAT5_GUIDED_CLUSTERING_TUTORIAL
directory and start the jupyter notebook.
---
RD, 2024/03/12