Skip to main content

Due to decreasing use over the years, I have decided to disable the forum functionality of the site.

Forums will still be available to view but new posts are no longer allowed.

Foal Coat Color Calculator

http://colorgenetics.info/equine/foal-coat-color-calculator I'd appreciate it if each of you would make a few "tests" and let me know if anything funny shows up.

SpiffyGrl Thu, 07/28/2011 - 00:09

I tried it, entered all info I know, pressed the submit button, and nuthin'. Not a dang thing happened. Is it down or something or did I do something wrong?

Katie Thu, 07/28/2011 - 01:52

Is there a way to streamline the results into maybe phenotype groupings or something? I tried the following pairing for the sake of testing, and the results were so disorganised. In theory, half of the possibilities are grey, no matter what is being carried, but it difficult to go through for the rest.

Ee AtAt gg Ccr Dd chch Zz
x
ee Aa Gg prl cr dd Chch zz

Daylene Alford Thu, 07/28/2011 - 05:02

[quote]I tried it, entered all info I know, pressed the submit button, and nuthin'. Not a dang thing happened. Is it down or something or did I do something wrong?[/quote]

It when you enter a bunch of things it takes the server a bit to calculate. Even on my home computer (without the internet involved) it can take several seconds.

[quote]Is there a way to streamline the results into maybe phenotype groupings or something? I tried the following pairing for the sake of testing, and the results were so disorganised. In theory, half of the possibilities are grey, no matter what is being carried, but it difficult to go through for the rest.

Ee AtAt gg Ccr Dd chch Zz[/quote]

There probably is but I'll have to research the options for a bit. I may can add a column sort type feature but I'm not sure how that will affect the images.

Daylene Alford Thu, 07/28/2011 - 05:49

Ok, I did do a bit of testing and if you enter a bunch combinations it takes a HUGE amount of memory and maxes out the php memory limit. On my home computer it was using over 500mb which is more than the entire server ymwhisle . I'm going to have to add a some code that will limit the number of combinations. You will still be able to do more than enough for real life situations just not all of them at once. The number of possible permutations starts getting quite large after a bit. It's calculated by n! so if there are 6 possible combinations the number of permutations is 6*5*4*3*2*1 as you can see it can get very large and all that info has to be stored in memory.

Third Peppermint Thu, 07/28/2011 - 09:39

Maybe we could have a set location for the picture and then list the % chance of the phenotype, and then grouped under the phenotype but smaller we could have the actual genes?

Daylene Alford Thu, 07/28/2011 - 16:06

[quote]Maybe we could have a set location for the picture and then list the % chance of the phenotype, and then grouped under the phenotype but smaller we could have the actual genes?[/quote]

I'm not sure I can do something like this the way the program is written or even that I want to do it. I'll have to think about it.

I did fix the appy patterns.

Daylene Alford Mon, 08/29/2011 - 17:00

Ok, I've redone the results page a bit. It is now in a table with sortable columns.

This was took way more time than I had imagined. The actual coding wasn't that hard but the sorting has to be done by JavaScript which I know nothing about. So I had to try a bunch of ready made solutions. I think I tried 5 before I found one that actually looked ok and did what I wanted. All the others either messed up the images or didn't allow for a fixed header.

I GUESS ya'll are worth it... ymwhisle ymwhisle ymwhisle

Oh I also fixed a small bug where a brown + buckskin was showing the image for a bay buckskin instead of a brown buckskin.

Billygoatsgruff Mon, 08/29/2011 - 21:10

is there any way to make the picture show to the left/right of the result table? my screen is too small to scroll through results and see the whole picture at the same time.

Monsterpony Mon, 08/29/2011 - 23:44

Very cool. According to the calculator, my pony had a 12.5% chance of cropping up based on his parents (ee CcrC KitWkit SPLspl X ee CC kitkit SPLspl = ee CcrC KitWkit SPLspl), with my boy being identical to his sire. The fact that he has an identical full sister is even more interesting.