forked from PalamaraLab/ASMC_legacy
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdecode.sh
More file actions
23 lines (20 loc) · 687 Bytes
/
decode.sh
File metadata and controls
23 lines (20 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# first input argument: root of file to be analyzed
file=FILES/EXAMPLE/exampleFile.n100.array
# second input argument: ASMC mode (either "array" or "sequence")
mode=array
# number of batches to be analyzed. This can be parallelized
N=5
if [ "$mode" != "array" ] && [ "$mode" != "sequence" ]; then
echo "ERROR: unrecognized mode: "$mode" please use one of {array, sequence}" > /dev/stderr;
exit;
fi
### run analysis. This can be parallelized, here just using a loop
for i in $(seq 1 $N); do
./ASMC --hapsFileRoot $file \
--decodingQuantFile $file.decodingQuantities.gz \
--mode $mode \
--majorMinorPosteriorSums \
--jobs $N \
--jobInd $i
done