Created
March 14, 2016 12:47
-
-
Save johnbowes/8149511b4197165ee8ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate frequency file | |
plink --bfile data/data_chr1 --freq --out results/data_chr1 --noweb | |
# run checking tool | |
HRC='/mnt/iusers01/jw01/mdeasjdb/projects/shared_resources/HRC/HRC.r1.GRCh37.autosomes.mac5.sites.tab' | |
perl script/HRC-1000G-check-bim.pl -b data/data_chr1.bim -f results/data_chr1.frq -r $HRC -h | |
# update data | |
sh Run-plink.sh | |
# convert to vcf - using --keep-allele-order | |
plink2 --bfile data_checked/data_chr1-updated-chr1 --a2-allele data_checked/data_chr1-updated-chr1.bim 5 2 --keep-allele-order --recode vcf --out vcf/data_chr1-updated-chr1-test3 | |
vcf-sort vcf/data_chr1-updated-chr1-test3.vcf | bgzip > vcf/data_chr1-updated-chr1-test3.vcf.gz | |
# checkVCF | |
./check-vcf/checkVCF.py -r check-vcf/hs37d5.fa -o vcf-check/test3 vcf/data_chr1-updated-chr1-test3.vcf.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment