ANGSD: Analysis of next generation Sequencing Data

Latest tar.gz version is (0.938/0.939 on github), see Change_log for changes, and download it here.

ErrorPerfect

From angsd
Jump to navigation Jump to search

Method 2

The method was use in Orlando2013 and is described in details in supplementary 4.4

The estimated rates can roughly be intrepreted as relative error rates. That is excess of errors in your sample compare to the error in a high quality indvidual. The idea is the your sample and the high quality individual should have the same expected number of derived alleles and the extra derived alleles in you sample are due to the excess error. We use only positions were there are coverage for both the chimp, the sample and the high quality genome. The overall error rate is obtained from


were

  • is the error rate
  • is the observed number of derived alleles in the sample
  • is the expected number of derived alleles which is obtained from the observed derived alleles from the high quality genome
  • is the expected number of ancestral alleles which is obtained from the high quality genome



The type specific error rates are obtained from maximizing the likehood

where n is the number of sampled bases, is the observed base of the sample, is the obsered base of the outgroup and e is an error rate matrix with entrance being the rate of error from base a to different base b and being equal to

We calculate the above by summing over the true unobserved base


is set equal to the observed fraction of sites in the high quality genome where the outgroup has base and the high qualtiy genome has base