Changes

From Genome Analysis Wiki
Jump to navigationJump to search
1,342 bytes added ,  20:55, 17 May 2010
no edit summary
Line 88: Line 88:  
== FAQ  ==
 
== FAQ  ==
   −
'''Q''': Where can I find combined HapMap reference files? <br> A: http://www.sph.umich.edu/csg/yli/mach/download/HapMap-r21.html <br><br>  
+
'''Q: Where can I find combined HapMap reference files? '''<br> A: http://www.sph.umich.edu/csg/yli/mach/download/HapMap-r21.html <br><br>  
   −
Q: Where can I find HapMap III reference files? <br> A: http://www.sph.umich.edu/csg/yli/mach/download/ <br><br>  
+
'''Q: Where can I find HapMap III reference files? '''<br> A: http://www.sph.umich.edu/csg/yli/mach/download/ <br><br>  
   −
Q: Does --mle overwrite fed-in genotypes?<br> A: Yes. But rarely. --mle outputs the most likely genotype guesses by integrating over the probabilities of all possible configurations based on the reference haplotypes. The overwriting happens when the most likely guess differs from the experimental counterpart.<br><br>  
+
'''Q: Does --mle overwrite fed-in genotypes?'''<br> A: Yes. But rarely. --mle outputs the most likely genotype guesses by integrating over the probabilities of all possible configurations based on the reference haplotypes. The overwriting happens when the most likely guess differs from the experimental counterpart.<br><br>  
   −
Q: How do I get reference files for an region of interest? <br>  
+
'''Q: How do I get reference files for an region of interest? '''<br> A: (1) For HapMapII format, download http://www.sph.umich.edu/csg/ylwtx/HapMapForMach.tgz <br>  
A: (1) For HapMapII format, download http://www.sph.umich.edu/csg/ylwtx/HapMapForMach.tgz <br>  
      
&nbsp;&nbsp;&nbsp; (2) For MACH format, you can do the following:  
 
&nbsp;&nbsp;&nbsp; (2) For MACH format, you can do the following:  
Line 110: Line 109:  
   awk '{print $3}' orig.hap | cut -c${first}-${last} &gt; region.hap
 
   awk '{print $3}' orig.hap | cut -c${first}-${last} &gt; region.hap
   −
<br>Q: Do I have to sort the pedigree file by physical positions? <br>
+
<br>'''Q: Do I have to sort the pedigree file by physical positions? '''<br> A: If you use external reference, you do not have to as long as the external reference is in correct order. **HOWEVER**, we strongly recommend sorting the pedigree files. <br><br>  
A: If you use external reference, you do not have to as long as the external reference is in correct order. **HOWEVER**, we strongly recommend sorting the pedigree files. <br><br>
     −
<br>Q: What if I specified --states R where R exceeds the maximum possible (2*number diploid individuals - 2 + number_haplotypes)? <br>
+
<br>'''Q: What if I specified --states R where R exceeds the maximum possible (2*number diploid individuals - 2 + number_haplotypes)? '''<br> A: mach automatically resets it to maximum possible value.  
A: mach automatically resets it to maximum possible value.
      +
<br>
 +
 +
'''Q: Can I used unphased reference?'''<br>
 +
 +
A: Yes. You simply need a combined pedigree (.ped) and marker information file (.dat). <br>
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp; For example, if you have:
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''ref.hap'''<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ACGGA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CCGAA
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''ref.snps'''<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SNP1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SNP2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SNP3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SNP4<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SNP5
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''sample.ped'''<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 1 0 0 1 A/A G/G&nbsp; <br>
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''sample.dat'''<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; M SNP1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; M SNP4
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The combined files should look like:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''comb.ped'''<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r1 r1 0 0 1 A/C C/C G/G G/A A/A<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 1 0 0 1 A/A ./. ./. G/G ./.
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''comb.dat'''<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; M SNP1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; M SNP2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; M SNP3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; M SNP4<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; M SNP5<br>
    
== Examples  ==
 
== Examples  ==
212

edits

Navigation menu