-
Notifications
You must be signed in to change notification settings - Fork 0
/
antsr_singlecore.slurm
28 lines (21 loc) · 1.13 KB
/
antsr_singlecore.slurm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# The above line needs to be at the top of all your SLURM scripts
### SLURM directives: This is where you tell SLURM what resources you need ###
### SLURM directives start with #SBATCH ###
### directives with a single - do not use a = sign ###
### directives with a double -- require a = sign ###
#SBATCH -J job_name # descriptive job name (not necessary)
#SBATCH -A groupname # group that SUs will be charged to
#SBATCH -t 1-12:00:00 # wall time in D-HH:MM:SS
#SBATCH -p standard # which partition you want to use
#SBATCH --mem-per-cpu=8000 # memory per core in MB
#SBATCH --ntasks-per-node=1 # number of cores you want to use
#SBATCH -N 1 # number of nodes you want to use
#SBATCH -o job_output.out # output file
#SBATCH -e job_error.err # error file
###Job content: This is where you load software and specify your job commands###
export R_LIBS="/path/to/your/R_libs"
module load R/3.2.1_tcltk
filename="mri.nii.gz"
source('/path/to/your/ANTsR_script.R')
ANTsR_script(filename)