Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coefficient of inbreeding / wrights algorithm / genetics

I am looking for a good pseudo code - or better yet actual code snippets - on implementing wrights algorithm on a genealogy database I have for sheep stored in SQL Server database.

I have a very old C program that worked against a flat text file until the population got so large the algorithm broke - as the entire thing was done in memory, so an implementation against a database would be preferable...

Anyone seen anything like this they can point me to?

like image 553
E.J. Brennan Avatar asked Apr 17 '09 12:04

E.J. Brennan


1 Answers

If you didn't want to roll your own, you could use the Python pypedal package for calculating the inbreeding coefficient, which supports SQL databases.

Pypedal's code for computing inbreeding coefficient is here.

like image 70
fgregg Avatar answered Oct 01 '22 01:10

fgregg