Singularity image with pre-installed libraries for running RNA-seq analysis in R.
The included libraries:
- ggplot2
- ggrepel
- ggvenn
- ggsignif
- cowplot
- RColorBrewer
- patchwork
- ComplexHeatmap
- gt
- edgeR
- DESeq2
- clusterProfiler
- ReactomePA
- biomaRt
- org.Mm.eg.db
- org.Hs.eg.db
- tximport
- gtools
- tools
- scales
- data.table
- forcats
- openxlsx
- readr
- dplyr
- reshape2 (included with other packages)
Use the definition file to build locally:
apptainer build RNAseq.sif RNAseq.defTip
Use a non-interactive install by adding -y
%post
apt-get update
# Install less and qpdf
apt-get install -y less
apt-get install -y qpdfPre-build image can be downloaded from the Cloud Library:
apptainer pull library://andreyhgl/singularity-r/rnaseq:latestTip
If apptainer/singularity is not working, try adding the remote host manually
# list the remote URI
singuliarty remote list
# add singularity cloud URI
apptainer remote add --no-login SylabsCloud cloud.sycloud.ioIn order to fully utilise the singularity image make sure a shebang is included in the script file #!/usr/bin/env Rscript.
#!/usr/bin/env Rscript
suppressPackageStartupMessages({
library(edgeR)
library(gtools)
})
...
Also make the script file executable.
chmod +x script-file.RThe singularity image expects a script file on exec.
apptainer exec library://andreyhgl/singularity-r/rnaseq:latest script-file.R