使用ShapeIT2进行单倍型分型
ShapeIT2支持两种phasing的方法 (for unrelated individuals without family information)
使用参考面板
不使用参考面板
输入文件都是VCF文件。
步骤:
将VCF按照染色体分开
1
2
3
4
5
6
7
8vcftools --gzvcf chinese-han.phase3.genotypes.vcf.gz \
--chr 22 \
--recode \
--recode-INFO-all \
--remove-filtered-all \
--min-alleles 2 \
--max-alleles 2 \
--out chinese_chr22phasing
不使用参考面板
1
2
3
4shapeit --input-vcf gwas.vcf \
-M genetic_map.txt \
-O gwas.phased \
-T 4使用参考面板
使用1000G作为参考面板。
Check SNP between INPUT and REF PANEL
1
2
3
4
5
6
7shapeit -check \
--input-vcf test_chr22.recode.vcf \
-M ~/one_thousand_genome/1000GP_Phase3/genetic_map_chr22_combined_b37.txt \
--input-ref ~/one_thousand_genome/1000GP_Phase3/1000GP_Phase3_chr22.hap.gz \
~/one_thousand_genome/1000GP_Phase3/1000GP_Phase3_chr22.legend.gz \
~/one_thousand_genome/1000GP_Phase3/1000GP_Phase3.sample \
--output-log test_chr22.alignmentsPhase wirh REF (exclude SNPs in .strand.exclude)
1
2
3
4
5
6
7
8shapeit --input-vcf test_chr22.recode.vcf \
-M ~/one_thousand_genome/1000GP_Phase3/genetic_map_chr22_combined_b37.txt \
--input-ref ~/one_thousand_genome/1000GP_Phase3/1000GP_Phase3_chr22.hap.gz \
~/one_thousand_genome/1000GP_Phase3/1000GP_Phase3_chr22.legend.gz \
~/one_thousand_genome/1000GP_Phase3/1000GP_Phase3.sample \
-O test_chr22.phased.with.ref \
--exclude-snp test_chr22.alignments.snp.strand.exclude \
-T 4
使用ShapeIT2进行单倍型分型
http://example.com/2019/11/14/使用ShapeIT2进行单倍型分型/