-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStructure_replicates.sh
More file actions
39 lines (33 loc) · 998 Bytes
/
Structure_replicates.sh
File metadata and controls
39 lines (33 loc) · 998 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
35
36
37
38
39
#!/bin/bash -l
# written by Peter L. Morrell, April 2011, St. Paul, MN
set -e
set -u
set -o pipefail
#PBS -l walltime=10:00:00,mem=4gb,nodes=4:ppn=1
#PBS -m abe -M youremail@email.edu
# the full path to user space can vary
# the line below makes is easy to set
Working_dir=/home/xe1/pmorrell/
# directory containing Structure application
DIR=$Working_dir/Apps/structure/console
# full path to application
PROGRAM=$Working_dir/Apps/structure2.3.3_console/structure
# Structure data file
INPUT1=$Working_dir/Cebada/OPA1_2/OPA1_2_landrace
# Structure main parameters file
INPUT2=$Working_dir/Cebada/OPA1_2/OPA1_2_landrace_mainparams
# Structure extra parameters file
INPUT3=$Working_dir/Cebada/OPA1_2/OPA1_2_landrace_extraparams
# output file; name will be appended
OUTPUT=$Working_dir/Cebada/OPA1_2/OPA1_2_landrace
REPS=2
KMIN=2
KMAX=5
for ((j=$KMIN;j<=$KMAX;j++))
do
for ((i=1;i<=$REPS;i++))
do
cd $DIR
$PROGRAM -i $INPUT1 -m $INPUT2 -e $INPUT3 -K $j -o ${OUTPUT}_${j}_${i}
done
done