Skip to content

Instantly share code, notes, and snippets.

@lindenb
Created March 21, 2019 11:37
Show Gist options
  • Select an option

  • Save lindenb/4a4580ea264d6adf3668fad88facc6bb to your computer and use it in GitHub Desktop.

Select an option

Save lindenb/4a4580ea264d6adf3668fad88facc6bb to your computer and use it in GitHub Desktop.
"custom module" modulepath path

create directory

mkdir -p .modulefiles/reference/human

create the module file .modulefiles/reference/human/GRCh37.75.lua

whatis("Version: GRCh37.75")
whatis("Keywords: Human Genome Reference")
whatis("Description: Human Genome Reference")
pushenv("REF","/sandbox/resources/species/human/ensembl/release-75/Homo_sapiens.GRCh37.75.dna.toplevel.fa")

add the directory in the ${MODULEPATH}

export MODULEPATH=${HOME}/.modulefiles:${MODULEPATH}

list available modules

$ module avail

----------------------------------------------------------------- /sandbox/users/lindenbaum-p/.modulefiles ------------------------------------------------------------------
   reference/human/GRCh37.75
(...)

use the module

$ module load reference/human/GRCh37.75
$ echo ${REF}
/sandbox/resources/species/human/ensembl/release-75/Homo_sapiens.GRCh37.75.dna.toplevel.fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment