The module system¶
Learning outcomes
- Practice using the UPPMAX documentation
- Understand why there is a module system
- Can find pre-installed software using the module system
- Can load a module
- Practice loading the
bioinfo-toolsmodule first - Extra: Can find pre-installed software from the documentation
For teachers
Teaching goals are:
- Learners have practiced using the UPPMAX documentation
- Learners understand why there is a module system
- Learners can find pre-installed software using the module system
- Learners can load a module
- Learners can unload a module
- Learners understand to load the
bioinfo-toolsmodule first - Extra: Learners have found pre-installed software from the documentation
Lesson plan:
gantt
title Modules
dateFormat X
axisFormat %s
section First hour
Prior : prior, 0, 5s
Present: present, after prior, 2s
%% It took me 9 mins, here I do that time x2
Challenge: crit, challenge, after present, 18s
%% Here I use the same time it took me to give feedback
Feedback: feedback, after challenge, 9s
Prior questions:
- What would happen if all users would be allowed to install software on Bianca?
- Describe a situation when two users that have admin rights on the same account of the same computer cannot both be happy
- How can one run different versions of the same software on a same computer?
- How can we have users use different versions of the same software?
Feedback:
- What is a software module?
- Why does Bianca use software modules?
Why use the module system?¶
The module system allows you to run your software, of your favorite version, installed by us :-)
Additionally, there are big databases (think terabytes!) that are also available to you.
In this session, we'll search for pre-installed software, pre-installed databases and use these.
The bioinfo-tools module¶
The most important module for bioinformaticians is the bioinfo-tools
module. It is loaded as such:
Only after loading it will some other tools appear.
Exercises¶
Need a video?
The YouTube video 'Intro to UPPMAX Day 1: The module system' shows the solution of these exercises
Exercise 1: work with modules¶
Go to the UPPMAX documentation at https://docs.uppmax.uu.se, then answer these questions:
- Find the UPPMAX documentation on modules
Answer
One can find the answer at https://docs.uppmax.uu.se/cluster_guides/modules/, where the module system is explained
- Search the module system for a tool called
cowsayto find out in which module it is installed
- Load the latest version of the module for
cowsay
Answer
After having used module spider cowsay, we've seen that the
latest version is 3.03. Hence we load the module like this:
-
To confirm
cowsayworks, typecowsay hello. A cow that says 'hello' should appear -
Unload the module for
cowsay
Answer
- Confirm that
cowsaydoes not work anymore, by typingcowsay hello. This should give an error
Exercise 2: the bioinfo-tools module¶
Go to the UPPMAX documentation at https://docs.uppmax.uu.se, then answer these questions:
- Load the
samtoolsmodule, without loading thebioinfo-toolsmodule (if you have loaded it, unload it). Which error message do you get?
Answer
- Do what is suggested, that is, do
module spider samtools. Is the suggestion to loadbioinfo-toolsgiven there?
Answer
No:
[sven@bianca1 ~]$ module spider samtools
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
samtools:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Versions:
samtools/0.1.12-10
samtools/0.1.19
samtools/1.1
samtools/1.2
samtools/1.3
samtools/1.4
samtools/1.5_debug
samtools/1.5
samtools/1.6
samtools/1.8
samtools/1.9
samtools/1.10
samtools/1.12
samtools/1.14
samtools/1.16
samtools/1.17
samtools/1.19
samtools/1.20
Other possible modules matches:
SAMtools
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
To find other possible module matches execute:
$ module -r spider '.*samtools.*'
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For detailed information about a specific "samtools" package (including how to load the modules) use the module's full name.
Note that names that have a trailing (E) are extensions provided by other modules.
For example:
$ module spider samtools/1.20
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Do
module spider samtoolsto get help about the latest version. Is the suggestion to loadbioinfo-toolsgiven there?
Answer
Yes:
[sven@bianca1 ~]$ module spider samtools/1.20
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
samtools: samtools/1.20
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
You will need to load all module(s) on any one of the lines below before the "samtools/1.20" module is available to load.
bioinfo-tools
Help:
samtools - use samtools 1.20
Version 1.20
Remember, whenever you cannot find something, do:
Extra: Exercise 3: find the software¶
Go to the UPPMAX documentation at https://docs.uppmax.uu.se, then answer these questions:
- Find to list of installed software. Estimate how many pieces of software are installed on Bianca
Answer
One can find the answer at https://docs.uppmax.uu.se/software/software-table/, where one can find around 800 pieces of software installed