-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_nas.sh
28 lines (23 loc) · 901 Bytes
/
run_nas.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
25
26
27
28
#!/bin/bash
while true; do
read -p "This will overwrite stats from the previous run. Do you wish to continue?" yn
case $yn in
[Yy]* ) make install; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
make clean && make || exit 1
rm /scratch_nas/scratch/*
cleanscratch.sh
test -d data/logs && rm -r data/logs
mkdir data/logs || exit 1
ls /mnt/778/778-5000ng/778-5000ng_albacore-2.1.3/fast5/* -lhS | awk '{print $9}' > data/dev.cfg;
ansible all -m copy -a "src=scripts/fast5_pipeline_nas.sh dest=/nanopore/bin/fast5_pipeline.sh mode=0755"
/usr/bin/time -v ./f5pl data/ip_list.cfg data/dev.cfg 2>&1 | tee log.txt
ansible all -m shell -a "cd /nanopore/scratch && tar zcvf logs.tgz *.log"
gather.sh /nanopore/scratch/logs.tgz data/logs/log tgz
cp log.txt data/logs/
mv *.cfg data/logs/
cp $0 data/logs/
cp scripts/fast5_pipeline_nas.sh data/logs/