-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_sc12_01_clusterwise_cluster stability.sh
24 lines (19 loc) · 1.32 KB
/
run_sc12_01_clusterwise_cluster stability.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
#SBATCH --job-name=cl_stbl_par
#SBATCH -p scavenge
#SBATCH -n 1 -c 25 -N 1
#SBATCH -t 24:00:00
#SBATCH -o /my/working/directory/stdout/cluster_stbl_boot_foreach.%A_%a.out
#SBATCH -e /my/working/directory/stderr/cluster_stbl_boot_foreach.%A_%a.err
#SBATCH --mem-per-cpu=5G
#SBATCH --array=3-37,41,42,43
#SBATCH --requeue
export CUNIT=$( cat /my/working/directory/data/partitional_clustering/bst_ncl.txt | head -n $SLURM_ARRAY_TASK_ID | tail -1 | awk '{print $1}' )
export BID=$( cat /my/working/directory/data/partitional_clustering//bst_ncl.txt | head -n $SLURM_ARRAY_TASK_ID | tail -1 | awk '{print $2}' )
export VSET=$( cat /my/working/directory/data/partitional_clustering/bst_ncl.txt | head -n $SLURM_ARRAY_TASK_ID | tail -1 | awk '{print $3}' )
export SEED=$( cat /my/working/directory/data/partitional_clustering/bst_ncl.txt | head -n $SLURM_ARRAY_TASK_ID | tail -1 | awk '{print $4}' )
export NSTART=$( cat /my/working/directory/data/partitional_clustering/bst_ncl.txt | head -n $SLURM_ARRAY_TASK_ID | tail -1 | awk '{print $5}' )
export NCL=$( cat /my/working/directory/data/partitional_clustering/bst_ncl.txt | head -n $SLURM_ARRAY_TASK_ID | tail -1 | awk '{print $6}' )
module load R/4.0.3-foss-2020b
R --slave -f /my/working/directory/code/cluster_analysis/sc12_01_clusterwise_cluster_stability_slurm.R
exit