Description Usage Arguments Details Value
View source: R/inject-errors.r
Randomly loose an EAG number.
1 | loose_eag(x, pE, odds = 1)
|
x |
A < |
pE |
The absolute probability that an error occurs. |
odds |
The odds in favour of loosing an EAG on Exon 2 rather
than Exon 3. E.g. |
We generally deal with the following scenario on any HLA locus currently:
Exon A | Exon B | |
EAG 1 | a | c |
EAG 2 | b | d |
We know (have a guesstimate of) the total error rate due to loss of EAGs at a given DNA concentration, P(E), and we know the odds, ω, that we'll loose an EAG at one or the other exon.
E.g. if we perform two independent PCR reactions for exon 2 and only one PCR reaction for exon 3, the odds of loosing an EAG are 4 in 1 for exon 3. I. e. in order for an error to manifest on exon 2 we must loose the same EAG in both reactions, the probability of which is ¼ of loosing an EAG in a single reaction.
What we want to know is:
The probability that we loose an EAG on exon A but not on exon B, given that we make an error at all.
The probability that we loose an EAG on exon B but not on exon A, given that we make an error at all.
The probability that we loose an EAG on exon A and on exon B, given that we make an error at all.
To get there we need to know the error rate for exon A, εA, and the error rate for exon B, εB, since:
Considering that εA + εB - εAεB = P(E) and εB = 1⁄ω εA we can arrive after some rearrangements at:
These error rates allow now to randomly loose EAGs with the correct probabilities.
An <eag_numbers> instance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.