Canyi Chen's Homepage

Get Task ID from Your Script

param<-Sys.getenv(“SLURM_ARRAY_TASK_ID”)
param=getenv(‘SLURM_ARRAY_TASK_ID’);
import os

param = os.getenv(‘SLURM_ARRAY_TASK_ID’)