views:

276

answers:

1

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?

+2  A: 

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.

fgregg