Tool for determining the potential puppy colors from a mating pair of labrador retrievers. Because coat color is determined by 3 different genes, it can be complicated to figure out. There used to be a web tool to do this, but the developer stopped supporting it. I am building a similar web tool, with the addition of percentages.
Labrador Coat Colors.nb is the prototype in Mathematica. You can download the Wolfram Notebook Player for free to run it.
Note that the percentages do not indicate the makeup of a litter. The numbers are the likelihood of color (phenotype) and genotype for each individual pup.
To determine what phenotype a genotype is, the prototype just looks through a list. I worked out the decision logic in Python, and created a test file to test every possible combination of these 3 genes.
To run genotype_to_phenotype.py, genotype should be entered like this: BbEeDd
To run test_all_genotypes.py, comment out the line in genotype_to_phenotype.py that runs the main function
To run labrador_test_or_main, comment out the lines in both genotype_to_phenotype.py and test_all_genotypes.py that run the main functions
Includes all the files to run the decision logic in Python. Currently set up to run the test of all possible mating pairs using test_all_mating_pairs.py and output 2 files with the results of each test. To run for an individual mating pair, uncomment the line main()
in labrador_coat_colors.py.
My next step is to build the whole thing as a web application, which will be on my dog training website when it's finished.The UI will also get an update from the prototype.