-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5_LD-prune.sh
31 lines (26 loc) · 960 Bytes
/
5_LD-prune.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
#!/bin/bash
#SBATCH --job-name=prune
#SBATCH --time=2-00:00:00
#SBATCH --partition=normal
#SBATCH --nodes=1
#SBATCH --mem=8gb
#SBATCH --tasks-per-node=8
#SBATCH --output=log5-prune.%A_%a.out
source /public/apps/conda3/etc/profile.d/conda.sh
conda activate anc_vig
main_dir=$(pwd)
INP="$main_dir/plink_1KG"
OUT="$main_dir/Pruned"
cd $INP
# mkdir $OUT
for chr in {1..22}; do
plink --noweb \
--bfile $INP/ALL.chr"${chr}".phase3_shapeit2_mvncall_integrated_v5b.20130502.genotypes \
--maf 0.10 --indep 50 5 1.5 \
--out $OUT/ALL.chr"${chr}".phase3_shapeit2_mvncall_integrated_v5b.20130502.genotypes ;
plink --noweb \
--bfile $INP/ALL.chr"${chr}".phase3_shapeit2_mvncall_integrated_v5b.20130502.genotypes \
--extract $OUT/ALL.chr"${chr}".phase3_shapeit2_mvncall_integrated_v5b.20130502.genotypes.prune.in \
--make-bed \
--out $OUT/ALL.chr"${chr}".phase3_shapeit2_mvncall_integrated_v5b.20130502.genotypes ;
done