This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
guides:slurm:basics [16.10.2020 10:47] Juha Kekäläinen |
guides:slurm:basics [27.11.2023 12:40] (current) Administrator |
||
---|---|---|---|
Line 35: | Line 35: | ||
#SBATCH --mem=2000 # | #SBATCH --mem=2000 # | ||
#SBATCH --partition serial # Partition to submit | #SBATCH --partition serial # Partition to submit | ||
- | module load matlab/R2018b | + | |
+ | module load matlab/R2022b | ||
matlab -nodisplay < matlab.m # Execute the script | matlab -nodisplay < matlab.m # Execute the script | ||
Line 47: | Line 48: | ||
``` | ``` | ||
**[sbatch](https:// | **[sbatch](https:// | ||
+ | |||
+ | Here is an another example on how to analyze variants. | ||
+ | |||
+ | ``` | ||
+ | #!/bin/bash | ||
+ | #SBATCH --ntasks 1 # Number of task | ||
+ | #SBATCH --time 00: | ||
+ | #SBATCH --mem 2000 # Reserve 2 GB RAM for the job | ||
+ | #SBATCH --partition serial | ||
+ | |||
+ | module load bcftools # load modules | ||
+ | |||
+ | # filter variants and calculate stats | ||
+ | bcftools filter --include' | ||
+ | ``` | ||
+ | |||
+ | Submit the job to computing queue with the **[sbatch](https:// | ||
+ | |||
+ | ``` | ||
+ | sbatch variants.sbatch | ||
+ | ``` | ||
Line 83: | Line 105: | ||
``` | ``` | ||
scontrol show job < | scontrol show job < | ||
- | ``` | ||
- | |||
- | #### Extend runtime of given jobid | ||
- | |||
- | ``` | ||
- | scontrol update jobid=< | ||
``` | ``` | ||