-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend_jobCorrSLURM.sh
More file actions
executable file
·35 lines (26 loc) · 1010 Bytes
/
send_jobCorrSLURM.sh
File metadata and controls
executable file
·35 lines (26 loc) · 1010 Bytes
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
29
30
31
32
33
34
#!/bin/bash
### job parameters
#SBATCH --job-name=gradGen
#SBATCH -o ./logs/gradGenJob-%j.out
#SBATCH -p short
#SBATCH --constraint="skl-compat"
#SBATCH --cpus-per-task=8
#SBATCH --array=1-1018:1
#SBATCH --requeue
SUBJECT_LIST=./SubjectsCompleteData.txt
smooth_kernel=$1
#####load workbench
module load ConnectomeWorkbench/1.4.2-rh_linux64
#### load python
module load Python/3.9.6-GCCcore-11.2.0
source /well/margulies/users/mnk884/python/corrmats-skylake/bin/activate
echo Executing task ${SLURM_ARRAY_TASK_ID} of job ${SLURM_ARRAY_JOB_ID} on `hostname` as user ${USER}
### each subject forms one job of the array job
echo "smoothing kernel is" ${smooth_kernel}
####get file name
echo the job id is $SLURM_ARRAY_JOB_ID
FILENAME=$(sed -n "${SLURM_ARRAY_TASK_ID}p" $SUBJECT_LIST)
echo echo $SLURM_ARRAY_JOB_ID
echo "Processing subject $FILENAME"
# Load a recent python module
python -u GradDistCorrFullHCP.py --subj $FILENAME --odir /well/margulies/projects/data/hcpGrads --kernel ${smooth_kernel}