hpc:applications_and_libraries
Differences
This shows you the differences between two versions of the page.
| hpc:applications_and_libraries [2025/04/11 09:21] – [Limitations] 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 363: | Line 363: | ||
| [...] | [...] | ||
| - | prefix:/ | + | prefix:/ |
| </ | </ | ||
| Line 371: | Line 371: | ||
| # 1. (optional) create your environment (or not if you already have one) | # 1. (optional) create your environment (or not if you already have one) | ||
| $ conda create -n bioenv -c bioconda -c conda-forge spades exonerate diamond blast mafft trimal numpy joblib scipy -y | $ conda create -n bioenv -c bioconda -c conda-forge spades exonerate diamond blast mafft trimal numpy joblib scipy -y | ||
| + | |||
| # 2. Activate your environment | # 2. Activate your environment | ||
| $ conda activate bioenv | $ conda activate bioenv | ||
| + | |||
| # 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 | ||
| </ | </ | ||
| - | <note tip></ | + | |
| === Step 2 – Build the Container === | === Step 2 – Build the Container === | ||
| - | Now use `cotainr` to create the image: | + | Now use '' |
| <code bash> | <code bash> | ||
| Line 389: | Line 391: | ||
| </ | </ | ||
| - | You can replace | + | You can replace |
| === Step 3 – Use the Container === | === Step 3 – Use the Container === | ||
| Line 403: | Line 405: | ||
| - | === References | + | |
| - | * [cotainr tutorial](https:// | + | |
| - | * [Apptainer documentation](https:// | + | |
| + | |||
| + | ==== Conda environment management ==== | ||
| Line 413: | Line 417: | ||
| module load Anaconda3 | module load Anaconda3 | ||
| </ | </ | ||
| - | |||
| - | |||
| - | ==== Conda environment management ==== | ||
| - | |||
| Create | Create | ||
| Line 1150: | 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.1744363290.txt.gz · Last modified: (external edit)