-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathget-genomes.sh
executable file
·52 lines (41 loc) · 1.38 KB
/
get-genomes.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
#!/usr/bin/env bash
if ! [ -f araTha1/araTha1.fa.sizes ]; then
mkdir -p araTha1
cd araTha1
wget https://genome-test.gi.ucsc.edu/~hiram/hubs/Plants/araTha1/araTha1.2bit
twoBitToFa araTha1.2bit araTha1.fa
faidx -x araTha1.fa
faidx araTha1.fa -i chromsizes > araTha1.fa.sizes
rm araTha1.2bit chr*.fa
cd ..
fi
if ! [ -f ce10/ce10.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[XVIM]{1,3}$" -t 8 -f ce10
fi
if ! [ -f ce11/ce11.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[XVIM]{1,3}$" -t 8 -f ce11
fi
if ! [ -f ci3/ci3.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[\d]{1,2}$" -t 8 -f ci3
fi
if ! [ -f danRer11/danRer11.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[\dXYM]{1,2}$" -t 8 -f danRer11
fi
if ! [ -f dm6/dm6.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[234XYLR]{1,2}$" -t 8 -f dm6
fi
if ! [ -f hg19/hg19.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[\dXYM]{1,2}$" -t 8 -f hg19
fi
if ! [ -f hg38/hg38.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[\dXYM]{1,2}$" -t 8 -f hg38
fi
if ! [ -f mm10/mm10.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[\dXYM]{1,2}$" -t 8 -f mm10
fi
if ! [ -f mm39/mm39.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[\dXYM]{1,2}$" -t 8 -f mm39
fi
if ! [ -f sacCer3/sacCer3.fa.sizes ]; then
genomepy install -p UCSC -g ./ -r "^chr[XVIM]{1,4}$" -t 8 -f sacCer3
fi