@@ -15,9 +15,17 @@ system. Notable examples are Matlab and R.
Quick Start
-----------
**List available** modules with program:`module avail`:
**List available** modules with
**Activate** a module with program:`module load NAME[/OPTIONAL_VERSION]`.
.. code-block:: shell
module avail
**Activate** a module with an optional version string:
.. code-block:: shell
module load R[/3.6]
Details
...
...
@@ -28,9 +36,9 @@ reachable to you: `PATH` and `LD_LIBRARY_PATH`.
In most cases environment modules are simply modifying these two variables. For
instance, if your `PATH` contains `/opt/software/matlab/R2017b/bin` then
everything available in that folder will be available in your shell and when
you run program:`matlab` it will probably be the one found in there:
you run :program:`matlab` it will probably be the one found in there:
.. code:
.. code-block:: shell
[krause@ood-43 ~] which matlab
/usr/local/bin/matlab
...
...
@@ -48,7 +56,7 @@ The source definition for an environment file is pretty straight forward, you ca
It's possible to conflict with other modules. For example, if you were to load :program:`mrtrix3` and :program:`mrtrix3tissue` you would get an error, because only one implementation of mrtrix3 should be active:
.. code:
.. code-block:: shell
[krause@master ~] module load mrtrix3
[krause@master ~] module load mrtrix3tissue
...
...
@@ -63,7 +71,7 @@ To list all currently active modules, you can use :program:`module list`.
Caveats
-------
Software built in :path:`/opt/software` is prone to break after operating
Software built in :file:`/opt/software` is prone to break after operating
system upgrades. In cases where the software is compiled statically (R) or
where the software ships their own shared libraries (Matlab), everything will
continue to work. In same cases where software is delivered as a tarball
@@ -31,6 +30,9 @@ The simple subject loop shown in section :ref:`job_wrappers` and can be adapted
done
You can currently choose between different versions of FreeSurfer located in the folder :file:`/opt/freesurfer/` by setting :samp:`FREESURFER_HOME` accordingly.
You can currently choose between different versions of FreeSurfer located in
the folder :file:`/opt/freesurfer/` by activating a freesurfer module with
:program:`module load freesurfer[/version]`. See :doc:`../environment/modules`