Changes between Version 13 and Version 14 of GoNL_Immunochip_Data_Preparation
- Timestamp:
- Jul 5, 2011 12:30:39 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GoNL_Immunochip_Data_Preparation
v13 v14 4 4 This page describes the necessary steps to get a VCF Hg19 file containing the GoNL Immunochip data from the raw/QC'ed Immunochip data in PED format. This is using tools as available in early 2011 and should get much simpler when PLINK/Seq is released. 5 5 6 Here, the procedure is shown for a FORWARD strand PED file. If you have a TOP/TOP PED file, you will still need to correct for strand.6 Here, the procedure is shown for a FORWARD strand PED file. If you have a TOP/TOP PED file, you will not be able to include strand-ambiguous SNPs (A/T, C/G) in your output. 7 7 8 8 = PED to VCF = … … 15 15 16 16 This pre-compiled version can only be run on Linux64 machines and some dependency problems may occur. 17 17 18 == Correct the initial VCF file == 18 19 The initial VCF file produced by PLINK 1.08 does contain the right information, however it is not actually in VCF format. The problem here is that PLINK files specify the Ref/Alt alleles relative to the dataset where VCF specifies the Ref/Alt alleles relative to the Human Genome Reference it is aligned on. To correct this VCF file, it is necessary to modify the initial VCF file so that the alleles are relative to the Human Genome Reference and not the dataset anymore. … … 28 29 29 30 * fastaFromBed -fi reference.fa -bed in.bed -fo out.fa.tab -tab 31 30 32 === Re-arrange Ref/Alt alleles based on the Human Genome Reference === 31 33 Now that we have the Human Reference Genome loci, it is trivial to re-arrange the alleles so that the Ref and Alt alleles correspond to the Human Genome Reference. I wrote a small script, ''align-vcf-to-ref.pl'' that does the work provided the correct input. Note that when flipping the order of alleles in the VCF Ref/Alt columns, one must also flipped the genotypes correctly. 34 35 If using ''align-vcf-to-ref.pl'', one also has the option to flip the strand where relevant if the data was not all on forward strand. Note that by doing so, all strand-ambiguous (A/T,C/G) will be removed. 32 36 33 37 === [Optional] Update SNP IDs === … … 59 63 1. Remove all SNPs that are not present in the new reference VCF file (using plink --extract) 60 64 1. Use the liftover VCF as an input to the ''liftover-bim.pl'' tool . 65 61 66 == Downloads == 62 67 All tools developed inhouse at UMCG are available here: [[http://www.bbmriwiki.nl/svn/ped_to_vcf]]