Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you get such a message, you can use module display command for further information.

Code Block
languagepowershelltext
themeRDark
$ module display RepeatMasker/4.0.6
-------------------------------------------------------------------
/services/tools/modulefiles/RepeatMasker/4.0.6:

module-whatis    RepeatMasker 4.0.6 - screens DNA sequences for interspersed repeats and low complexity DNA sequences
conflict         RepeatMasker
prereq   perl
prereq   trf
prereq   ncbi-rmblastn
prepend-path     PATH /services/tools/RepeatMasker/4.0.6
prepend-path     PERL5LIB /services/tools/RepeatMasker/4.0.6
-------------------------------------------------------------------

...

Verify which modules are loaded

Code Block
languagepowershelltext
themeRDark
$ module list
Currently Loaded Modulefiles:
  1) gcc/4.8.2        2) tools            3) ngs              4) anaconda2/2.1.0

...

To switch loaded modulefile1 with modulefile2, use switch [modulefile1] modulefile2
If modulefile1 is not specified, then it is assumed to be the currently loaded module with the same root name as modulefile2.

Code Block
languagepowershelltext
themeRDark
$ module list
Currently Loaded Modulefiles:
  1) gcc/4.8.2        2) tools            3) ngs              4) anaconda2/2.1.0
$ module switch anaconda2/2.1.0 anaconda3/4.0.0
$ module list
Currently Loaded Modulefiles:
  1) gcc/4.8.2        2) tools            3) ngs              4) anaconda3/4.0.0


Code Block
languagepowershelltext
themeRDark
$ module switch anaconda3/2.2.0
$ module list
Currently Loaded Modulefiles:
  1) gcc/4.8.2        2) tools            3) ngs              4) anaconda3/2.2.0


Code Block
languagepowershelltext
themeRDark
$ module switch anaconda3/2.2.0 perl/5.20.2
$ module list
Currently Loaded Modulefiles:
  1) gcc/4.8.2        2) tools            3) ngs              4) perl/5.20.2

...

To remove one or more modules, use module unload [modulefile...]

Code Block
languagepowershelltext
themeRDark
$ module list
Currently Loaded Modulefiles:
  1) gcc/4.8.2        2) tools            3) ngs              4) perl/5.20.2
$ module unload perl ngs
$ module list
Currently Loaded Modulefiles:
  1) gcc/4.8.2   2) tools

...

In case all modules need to be unloaded at once use:

Code Block
languagepowershelltext
themeRDark
$ module purge
$ module list
No Modulefiles Currently Loaded.

...

Tip
Use <tab>-completion to list the sub-commands:


Code Block
languagepowershelltext
themeRDark
$ module init<tab><tab>
initadd      initclear    initlist     initprepend  initrm       initswitch

...