NGS-variants-training/2022.9/day2/variant_calling/ #17
Unanswered
Replies: 1 comment
-
To run the R code, here's an example for calculating the PL of the homozygous reference: genotype_likelihood <- function(m,g,e,ref,alt){
(((m-g)*e+g*(1-e))^alt * ((m-g)*(1-e)+g*e)^ref)/(m^(ref+alt))
}
likelihood <- genotype_likelihood( m = 2,
g = 0,
e = 0.01,
ref = 22,
alt = 4)
-10*log10(likelihood) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NGS-variants-training/2022.9/day2/variant_calling/
https://sib-swiss.github.io/NGS-variants-training/2022.9/day2/variant_calling/
Beta Was this translation helpful? Give feedback.
All reactions