Calculation of inbreeding coefficient

I have a database (PHP+mySQL) which is pretty straight forward: first field is ID, second is the name of dog(Name), third is the ID of his father (SireID) 4th is the ID of his mother (DameID), other fields are not relevant. What I now need is an algorithm that will calculate the COI - coefficient of inbreeding. There are two methods to calculate it: Wright's equation and Hardiman's method that are both explained here: [url removed, login to view] but there are of course many other pages that explain this maybe even better. I would prefer implementing Wright's method, so the final solution look something like this:

~ ~ ~

Inbreeding Coefficient: 8.094%

Top contributing ascendants :

Partial inbreeding due to Prinz v. Norden Stamm 1.869%

Partial inbreeding due to Graaf Quirinus v. Neerlands Stam 1.343%

Partial inbreeding due to Tequila Mali del Citone 0.703%

Partial inbreeding due to Hertog Alpha v. Le Dobry 0.616%

Partial inbreeding due to Gamon di Campovalano 0.561%

Partial inbreeding due to Astor del Citone 0.419%

Partial inbreeding due to Elisir di Campovalano 0.3%

Partial inbreeding due to Ebo v.d. Groote Maat 0.293%

Partial inbreeding due to Kastra v. Norden Stamm 0.249%

Partial inbreeding due to Guy's Hilo v. Norden Stamm 0.191%

Partial inbreeding due to Bryan v. Forell 0.175%

Partial inbreeding due to Nimrod Hilo v. Franckenhorst 0.118%

Most inbred ascendants :

Elisir di Campovalano 25%

Elite di Campovalano 25%

Dea Dolores v. Franckenhorst 20.45%

Dexter v. Franckenhorst 20.45%

Hertog Alpha v. Le Dobry 14.06%

Statistics for Sire and Dam:

Coefficient of Relationship between Sire and Dam 14.8426%

Coefficient of Inbreeding of Sire 3.9334%

Coefficient of Inbreeding of Dam 14.4547%

~ ~ ~

Thank you for attention!

Beceriler: MySQL, PHP

İşveren Hakkında:
( 0 değerlendirme ) Belgrade, Serbia

Proje NO: #705258

Seçilen:

phpSQLexpert

hi, please check Inbox for more details. Serious bidder. Cheers

%selectedBids___i_period_sub_7% gün içinde 100%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(18 Değerlendirme)
4.6

Bu iş için 12 freelancer ortalamada \$93 teklif veriyor

PHint

We at PHI are a team of experienced programmers who use PHP/MySQL on a daily basis, this project is no problem for us.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
3.5
jenwork

in %bids___i_period_sub_35% gün içinde80%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(3 Değerlendirme)
2.6
pulsar996

Hi, this looks easy enough. Paul

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)
0.8
zonup

Dear Hiring Manager: Best Development : [url removed, login to view] Current Work : [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] http:// Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
0.0
abdennacer

it's can be done in efficient and secured way.

in %bids___i_period_sub_35% gün içinde55%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
shrinuiitkgp

serious bidder. algorithm implementation time 2-3 hours

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
professionalcod

Hi, We are the group of people working from both India and US with knowledge in PHP, C#, ASP.NET, Data processing, Sql Server, MSSql, DB2, Joomla, Drupal did several projects as the same and we are really interested in Daha Fazla

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
priyalogics

Hi, We have expert Web Designers and Developers to work for your requirements. Expertise in various technologies such as PHP, MySQL, ASP, ASP.Net, VB.Net, SQL Server, Photoshop, Flash, CSS, AJAX, XML, HTML, Content Daha Fazla

in %bids___i_period_sub_35% gün içinde250%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
slavinva

I have a statistics background and have also worked in the field of dog breeding for 20+ years, so I fully understand what you are trying to achieve here. I believe I can help you and deliver what you are requesting. Daha Fazla

in %bids___i_period_sub_35% gün içinde150%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
cjbush

Senior Computer Science student at Cedarville University specializing in mobile and web development.

in %bids___i_period_sub_35% gün içinde50%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
esharvey

Hello. I am a PhD statistician with >10 years of consulting experience. I worked in statistical genetics for several years, so a program of this type would be quite straightforward for me. I look forward to learning m Daha Fazla

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0