-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSIFT_fin.sh
executable file
·60 lines (31 loc) · 1.47 KB
/
SIFT_fin.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#! /bin/bash
###############################################################################
##prepare
##INPUT
scaf_num=(scaffold_1 scaffold_2 scaffold_3 scaffold_4 scaffold_5 scaffold_6 scaffold_7 scaffold_8)
fold_pops=(07C 07D 07E 07F 07G 07J 07K 07L 07M 07N 07O 07P 07Q 07R 11C 11AA 11AB 11AC 11AE 11AG 11AH 11AJ 11B 11G 11H 11J 11K 11L_F0 11L_F1 11M 11N 11O 11P 11Q 11S 11T 11U 11W 11X 11Z 11D 11V 11R 11A 11E 11F 11Y 14A 14B 14C 14D 14E 07H 13ARE Ha21 Ha31)
fold_pops=(07C 07D 07E 07F 07G 07J 07K 07L 07M 07N 07O 07P 07Q 07R 11C 11AA 11AB 11AC 11AE 11AG 11AH 11AJ 11B 11G 11H 11J 11K 11L_F0 11L_F1 11M 11N 11O 11P 11Q 11S 11T 11U 11W 11X 11Z 11D 11V 11R 11A 11E 11F 11Y 14A 14B 14C 14D 14E 07H)
n_threads=1
folder="/scicore/home/williy/GROUP/snp_BED_50X/"
type="tot"
out_dir="/scicore/home/williy/fracasse/sift_50x/ris2"
sift_pro="/scicore/home/williy/fracasse/sift_50x/SIFT4G_Annotator_v2.4.jar"
database="/scicore/home/williy/fracasse/v.1.0.23/"
#scaf_num=(scaffold_1 scaffold_2)
#fold_pops=(07C 07D)
rm $out_dir
mkdir $out_dir
j=0
len_pop=${#fold_pops[*]}
while [ $j -lt $len_pop ]; do
#############################################################################
i=0
len=${#scaf_num[*]}
while [ $i -lt $len ]; do
z=$(($i+1))
echo ${scaf_num[$i]}"--"${fold_pops[$j]}"_"$z
grep DELETERIOUS "ris_sift/p"${fold_pops[$j]}"_"${scaf_num[$i]}"_SIFTPredictions_"$z".vcf" >> $out_dir"/p"${fold_pops[$j]}"_risift"
let i++
done
let j++
done