-
Notifications
You must be signed in to change notification settings - Fork 1
/
pipelineHybrids.sh
69 lines (56 loc) · 2.42 KB
/
pipelineHybrids.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
VCFdir=/fastdata/bo4da/Data/postTests/datasetsCorrect/refmerged
IBDdir=/fastdata/bo4da/Data/postTests/datasetsCorrect/refmerged/rerunChr2/allibd
popDir=/fastdata/bo4da/Data/1000genomes/byPopulation
for chr in $(seq 12 22); do
#all human sharing
grep Denis ${IBDdir}/allref${chr}.ibd |
grep -v Altai |
grep -v panTro4 |
sort -u -n -k6 -k7 > denSegs${chr}.txt
grep Denis ${IBDdir}/allref${chr}.ibd | grep Altai > neadensegs${chr}.txt
sort -u -k6 -k7 -n neadensegs${chr}.txt |
python /home/bo4da/Scripts/myIBDmerge.py > neadenmerged${chr}
#africans
grep Denis ${IBDdir}/allref${chr}.ibd |
grep -v Altai |
grep -v panTro4 |
grep -f ${popDir}/afr.list |
sort -u -n -k6 -k7 > afrDen${chr}.txt
sort -u -k6 -k7 -n afrDen${chr}.txt |
python /home/bo4da/Scripts/myHyAlgo.py neadenmerged${chr} |
sort -u -k2 -k3 -n |
python /home/bo4da/Scripts/myHyAlgoMerg2.py > afrdensegs${chr}
sort -u -k6 -k7 -n denSegs${chr}.txt |
python /home/bo4da/Scripts/myHyAlgo.py neadenmerged${chr} |
sort -u -k2 -k3 -n | python /home/bo4da/Scripts/myHyAlgoMerg2.py |
python /home/bo4da/Scripts/myHyAlgoMakeVCF2.py NA19031 afrdensegs${chr} ${VCFdir}/reffiltered${chr}.recode.vcf > afrhyb${chr}
#asians
grep Denis ${IBDdir}/allref${chr}.ibd |
grep -v Altai |
grep -v panTro4 |
grep -f ${popDir}/eas.list |
sort -u -n -k6 -k7 > easDen${chr}.txt
sort -u -k6 -k7 -n easDen${chr}.txt |
python /home/bo4da/Scripts/myHyAlgo.py neadenmerged${chr} |
sort -u -k2 -k3 -n |
python /home/bo4da/Scripts/myHyAlgoMerg2.py > easdensegs${chr}
sort -u -k6 -k7 -n denSegs${chr}.txt |
python /home/bo4da/Scripts/myHyAlgo.py neadenmerged${chr} |
sort -u -k2 -k3 -n | python /home/bo4da/Scripts/myHyAlgoMerg2.py |
python /home/bo4da/Scripts/myHyAlgoMakeVCF2.py HG01861 easdensegs${chr} ${VCFdir}/reffiltered${chr}.recode.vcf > asianhyb${chr}
#europeans
grep Denis ${IBDdir}/allref${chr}.ibd |
grep -v Altai |
grep -v panTro4 |
grep -f ${popDir}/eur.list |
sort -u -n -k6 -k7 > eurDen${chr}.txt
sort -u -k6 -k7 -n eurDen${chr}.txt |
python /home/bo4da/Scripts/myHyAlgo.py neadenmerged${chr} |
sort -u -k2 -k3 -n |
python /home/bo4da/Scripts/myHyAlgoMerg2.py > eurdensegs${chr}
sort -u -k6 -k7 -n denSegs${chr}.txt |
python /home/bo4da/Scripts/myHyAlgo.py neadenmerged${chr} |
sort -u -k2 -k3 -n |
python /home/bo4da/Scripts/myHyAlgoMerg2.py |
python /home/bo4da/Scripts/myHyAlgoMakeVCF2.py NA20505 eurdensegs${chr} ${VCFdir}/reffiltered${chr}.recode.vcf > eurhyb${chr}
done