hpc:applications_and_libraries
Differences
This shows you the differences between two versions of the page.
hpc:applications_and_libraries [2025/04/11 09:23] – [Step 1 – Define the Conda Environment] Adrien Albert | hpc:applications_and_libraries [2025/06/11 12:27] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 342: | Line 342: | ||
=== Step 1 – Define the Conda Environment === | === Step 1 – Define the Conda Environment === | ||
- | Create a file `env.yml` that contains the definition of your environment: | + | Create a file '' |
- | (As exemple we will use `bioenv.yml`) | + | (As exemple we will use '' |
<code bash> | <code bash> | ||
Line 376: | Line 376: | ||
# 3. Export the settings of your environment | # 3. Export the settings of your environment | ||
- | # It’s recommended to manually remove the `prefix:` line at the bottom of the file before using it with cotainr. | + | # It’s recommended to manually remove the `prefix:` line at the bottom of the file before using it with cotainr. |
$ conda env export > bioenv.yml | $ conda env export > bioenv.yml | ||
</ | </ | ||
Line 383: | Line 383: | ||
=== Step 2 – Build the Container === | === Step 2 – Build the Container === | ||
- | Now use `cotainr` to create the image: | + | Now use '' |
<code bash> | <code bash> | ||
Line 391: | Line 391: | ||
</ | </ | ||
- | You can replace | + | You can replace |
=== Step 3 – Use the Container === | === Step 3 – Use the Container === | ||
Line 405: | Line 405: | ||
- | === References | + | |
- | * [cotainr tutorial](https:// | + | |
- | * [Apptainer documentation](https:// | + | |
+ | |||
+ | ==== Conda environment management ==== | ||
Line 415: | Line 417: | ||
module load Anaconda3 | module load Anaconda3 | ||
</ | </ | ||
- | |||
- | |||
- | ==== Conda environment management ==== | ||
- | |||
Create | Create | ||
Line 1152: | Line 1150: | ||
With the Baobab upgrade to CentOS 7 (cf. https:// | With the Baobab upgrade to CentOS 7 (cf. https:// | ||
- | Instead, | + | Instead, |
- | + | ||
- | - install it in your '' | + | |
- | capello@login2: | + | |
- | capello@login2: | + | |
- | capello@login2: | + | |
- | [...] | + | |
- | capello@login2: | + | |
- | [...] | + | |
- | capello@login2: | + | |
- | </ | + | |
- | - launch an interactive graphical job: | + | |
- | - connect to the cluster using [[hpc:access_the_hpc_clusters# | + | |
- | - start an interactive session on a node (see [[hpc/ | + | |
- | capello@login2: | + | |
- | salloc: Pending job allocation 39085914 | + | |
- | salloc: job 39085914 queued and waiting for resources | + | |
- | salloc: job 39085914 has been allocated resources | + | |
- | salloc: Granted job allocation 39085914 | + | |
- | capello@node001: | + | |
- | </ | + | |
- | - load one of the R version supported by RStudio, for example:< | + | |
- | capello@node001: | + | |
- | + | ||
- | ---------------------------------------------------------------------------------- | + | |
- | R: R/3.6.0 | + | |
- | ---------------------------------------------------------------------------------- | + | |
- | Description: | + | |
- | R is a free software environment for statistical computing and | + | |
- | graphics. | + | |
- | + | ||
- | + | ||
- | You will need to load all module(s) on any one of the lines below | + | |
- | before the " | + | |
- | + | ||
- | GCC/ | + | |
- | [...] | + | |
- | capello@node001: | + | |
- | capello@node001: | + | |
- | capello@node001: | + | |
- | capello@node001: | + | |
- | </ | + | |
- | - run RStudio : <code console> | + | |
- | capello@node001: | + | |
- | </ | + | |
- | + | ||
- | <note important> | + | |
- | < | + | |
- | module load PostgreSQL/ | + | |
- | </ | + | |
- | </ | + | |
==== R packages ==== | ==== R packages ==== | ||
hpc/applications_and_libraries.1744363390.txt.gz · Last modified: (external edit)