Changes

From Genome Analysis Wiki
Jump to navigationJump to search
no edit summary
Line 19: Line 19:  
Within each file, markers should be stored by chromosome position. Alleles should be stored in the forward strand and can be encoded as 'A', 'C', 'G' or 'T' (there is no need to use numeric identifiers for each allele).  
 
Within each file, markers should be stored by chromosome position. Alleles should be stored in the forward strand and can be encoded as 'A', 'C', 'G' or 'T' (there is no need to use numeric identifiers for each allele).  
   −
The 1000 Genome pilot project genotypes use NCBI Build 36.
+
The 1000 Genome pilot project genotypes use NCBI Build 37.
    
=== Reference Haplotypes ===
 
=== Reference Haplotypes ===
   −
Reference haplotypes generated by the 1000 Genomes project and formatted so that they are ready for analysis are available from the [http://www.sph.umich.edu/csg/abecasis/MaCH/download/1000G-2010-06.html MaCH download page]. The most recent set of haplotypes were generated in June 2010 by combining genotype calls generated at the Broad, Sanger and the University of Michigan. In our hands, this June 2010 release is substantially better than previous 1000 Genome Project genotype call sets.
+
Reference haplotypes generated by the 1000 Genomes project and formatted so that they are ready for analysis are available from the [http://www.sph.umich.edu/csg/abecasis/MaCH/download/1000G-2010-08.html MaCH download page]. In our hands, this August 2010 release is substantially better than previous 1000 Genome Project genotype call sets.
    
== MaCH Imputation ==
 
== MaCH Imputation ==
Line 112: Line 112:     
== minimac Imputation ==
 
== minimac Imputation ==
 +
 +
=== Running MaCH ===
 +
 +
A typical MaCH command line to estimate phased haplotypes might look like this:
 +
 +
  mach1 -d sample.dat -p sample.ped --rounds 20 --states 200 --phase --interim 5 --sample 5 --compact
 +
 +
This will request that MaCH estimate haplotypes for your sample, using 20 iterations of its Markov sampler and conditioning each update on up to 200 haplotypes. A summary description of these parameters follows (but for a more complete description, you should go to the MaCH website):
 +
 +
{| class="wikitable" border="1" cellpadding="2"
 +
|- bgcolor="lightgray"
 +
! Parameter
 +
! Description
 +
|-
 +
|style=white-space:nowrap|<code>-d sample.dat</code>
 +
| Data file in [http://www.sph.umich.edu/csg/abecasis/Merlin/tour/input_files.html Merlin format]. Markers should be listed according to their order along the chromosome.
 +
|-
 +
| <code>-p sample.ped</code>
 +
| Pedigree file in [http://www.sph.umich.edu/csg/abecasis/Merlin/tour/input_files.html Merlin format]. Alleles should be labeled on the forward strand.
 +
|-
 +
| <code>--states 200</code>
 +
| Number of haplotypes to consider during each update. Increasing this value will typically lead to better haplotypes, but can dramatically increase computing time and memory use. A value of 100 - 400 is typical.
 +
|-
 +
| <code>--rounds 20</code>
 +
| Iterations of the Markov sampler to use for haplotyping. Typically, using 20 - 100 rounds should give good results. To obtain better results, it is usually better to increase the <code>--states</code> parameter.
 +
|-
 +
| <code>--interim 5</code>
 +
| Request that intermediate results should be saved to disk periodically. These will facilitate analyses in case a run doesn't complete.
 +
|-
 +
| <code>--sample 5</code>
 +
| Request that random (but plausible) sets of haplotypes for each individual should be drawn every 5 iterations. This parameter is optional, but for some rare variant analyses, these alternative haplotypes can be very useful.
 +
|-
 +
| <code>--phase</code>
 +
| Tell [[MaCH]] to estimate phased haplotypes for each individual.
 +
|-
 +
| <code>--compact</code>
 +
| Reduce memory use at the cost of approximately doubling runtime. This option is recommended for most GWAS scale datasets and computing platforms.
 +
|}
 +
 +
 +
 +
 +
 +
== Imputation into Phased Haplotypes ==
 +
 +
Imputing genotypes using '''minimac''' is an easy straightforward process: after selecting a set of reference haplotypes, plugging-in the target haplotypes from the previous step and setting the number of rounds to use for the model parameter estimation, imputation should proceed rapidly.
 +
 +
=== Running Minimac ===
 +
 +
A typical minimac command line might look like this:
 +
 +
  minimac --refHaps ref.hap.gz --refSnps ref.snps.gz --haps target.hap.gz --snps target.snps.gz --rounds 5 --states 200 --prefix results
 +
 +
A detailed description of all minimac options is available [[Minimac Command Reference|elsewhere]]. Here is a brief description of the above parameters:
 +
 +
{| class="wikitable" border="1" cellpadding="2"
 +
|- bgcolor="lightgray"
 +
! Parameter
 +
! Description
 +
|-
 +
| <code>--refSnps ref.snps.gz </code>
 +
| List of SNPs in the reference panel
 +
|-
 +
| <code>--refHaps ref.hap.gz </code>
 +
| Reference haplotypes (e.g. from [http://www.sph.umich.edu/csg/abecasis/MACH/download/1000G-2010-06.html MaCH download page])
 +
|-
 +
| <code>--snps target.snps.gz </code>
 +
| SNPs in phased haplotypes. These should largely be a subset of the SNPs in the reference panel.
 +
|-
 +
| <code>--haps target.hap.gz </code>
 +
| Phased haplotypes where missing genotypes will be imputed.
 +
|-
 +
| <code>--rounds 5</code>
 +
| Rounds of optimization for model parameters, which describe population recombination rates and per SNP error rates.
 +
|-
 +
| <code>--states 200</code>
 +
| Maximum number of reference (or target) haplotypes to be examined during parameter optimization.
 +
|-
 +
| <code>--prefix imputed</code>
 +
| Optionally, a string that is used to help generate output file names.
 +
|}
 +
 +
 +
=== Imputation quality evaluation ===
 +
Minimac drops each of the genotyped SNPs in turn and then calculates 3 statistics:
 +
* looRSQ - this is the estimated rsq for that SNP (as if SNP weren't typed).
 +
* empR - this is the empirical correlation between true and imputed genotypes for the SNP. If this is negative, the SNP is probably flipped.
 +
* empRSQ - this is the actual R2 value, comparing imputed and true genotypes.
 +
 +
These statistics can be found in the *.info file
 +
 +
=== X Chromosome Imputation ===
 +
minimac supports the imputation of genotypes on the X chromosome (non-pseudo-autosomal part).
 +
 +
# Split the X chromosome pedigree file by sex.
 +
## For females: follow the same protocol as for autosomes (phase with MaCH and impute with minimac).
 +
## For males
 +
### Remove the pseudo-autosomal part (for build hg18: chrX:1-2709520 and chrX:154584238-154913754 ; for build hg19 chrX:60001-2699520 and chrX:154931044-155260560)
 +
### Convert the pedigree file into a MaCH haplotype file (missing genotypes should be encoded as:  "0" or "." or "N" ) and impute using minimac as described above.
 +
 +
 +
 +
::::  '''<Example of a male only pedigree file >'''
 +
:::: FAM1003  ID1234  0  0  M  A/0  A/0  C/0
 +
:::: FAM1004  ID5678  0  0  M  0/0  C/0  G/0
 +
::::  ...
 +
::::  '''<End of pedigree file>'''
 +
 +
 +
::::  '''<Example of the corresponding haplotype file>'''
 +
::::  FAM1003->ID1234 HAPLO1 AAC
 +
::::  FAM1003->ID1234 HAPLO2 AAC
 +
::::  FAM1004->ID5678 HAPLO1 0CG
 +
::::  FAM1004->ID5678 HAPLO2 0CG
 +
::::  ...
 +
::::  '''<End of the corresponding haplotype file>'''
 +
 +
     
550

edits

Navigation menu