CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: calculating paternity index of single inconsitency in mutation with python

  1. #1
    Join Date
    Dec 2014
    Posts
    1

    calculating paternity index of single inconsitency in mutation with python

    PYTHON PROGRAMMING CODE TO ASSERTAIN THESE:

    person genotype

    mother ab

    child bc

    alleged father de

    X = P(man without C will contribute C)
    X = P(contributed gene will mutate) * P(mutated gene will be a C)
    m = observed rate of mutations/meiosis for the locus
    P(mutated gene will be a C) ie. Frequency of C allele = C
    X = C * m

    For the numerator (X) Probability = 2ab x 2de x 0.5 x m x C

    In order to explain this evidence the denominator
    must calculate the probability that the paternal allele
    is C and a random man would have a genotype
    inconsistent with paternity at this locus
    Y = P(paternal allele is C and random man has no C allele)
    = P(paternal gene is C) * P(random man has no C allele)

    P(paternal allele will be a C) ie. Frequency of C allele = C
    P(random man has no C allele) = probability of exclusion

    Y = C * A

    For denominator (Y) Probability = 2ab x 2de x 0.5 x C x A

    hence the final result should be:

    PI = X/Y

    PI = (2ab * 2de * 0.5 * C * m ) / (2ab * 2de * 0.5 * C * A)

    PI = m/A
    N:B where PI is Paternity Index

  2. #2
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,768

    Re: calculating paternity index of single inconsitency in mutation with python

    You should post your best attempt first.
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)