Skip to content

andreyhgl/containeR-gene-ontology

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

R run with singularity

README

Singularity image with pre-installed libraries for running gene ontology analysis in R.

The included libraries:

Gene and genome annotation

Utility

  • gtools
  • scales
  • openxlsx

Build

Use the definition file to build locally:

apptainer build gene_ontology.sif gene_ontology.def

Deploy

Pre-build image can be downloaded from the Cloud Library:

apptainer pull library://andreyhgl/singularity-r/gene-ontology:latest

Note, with apptainer the remote singularity host might need to be added manually

# list the remote URI
singuliarty remote list

# add singularity cloud URI
apptainer remote add --no-login SylabsCloud cloud.sycloud.io

Execute scripts

In 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(scales)
  library(gtools)
})

...

Also make the script file executable.

chmod +x script-file.R

The singularity image expects a script file on exec.

apptainer exec library://andreyhgl/singularity-r/gene-ontology:latest script-file.R

About

Singularity container for running gene ontology anlaysis

Topics

Resources

License

Stars

Watchers

Forks