Vote for BP.Net for the 2013 Forum of the Year! Click here for more info.

» Site Navigation

» Home
 > FAQ

» Online Users: 731

0 members and 731 guests
No Members online
Most users ever online was 47,180, 07-16-2025 at 05:30 PM.

» Today's Birthdays

None

» Stats

Members: 76,069
Threads: 249,219
Posts: 2,572,796
Top Poster: JLC (31,651)
Welcome to our newest member, ColorblindChameleon
  • 01-12-2011, 08:51 PM
    OhhWatALoser
    So what is the math behind a punnet square?
    So I was playing around with some thing today, and was attempting to make a punnet square calc. but for the life of me, I can't figure out the math behind it, i only took up to high school trig tho lol.

    I can do them on paper easily, but when it comes to make the computer understand what I want, I'm at a lost.
  • 01-13-2011, 06:43 AM
    thb
    Re: So what is the math behind a punnet square?
    I have made the genetic wizard on www.worldofballpythons.com/wizard/ and to play with the genetics that way wasnt an easy task. (not for me anyways)

    The first version took me about 30 hours to make...

    Now the second version is only and I havent got all the genetic rules incorporated yet, because of some genes that acts crazy when mixing.
  • 01-13-2011, 02:19 PM
    OhhWatALoser
    yea, also it doesn't add %'s which really bothers me lol, other than that its great. I just wanted to expand on it, add rules, add %'s, have it so you can type in the morphs, not have to scroll through them. Your wizard is by far the most recommended tho, I'd personally like a different layout, so thats what i'm doing.

    well I came up with a method today, going to attempt to make it work, We shall see.

    Edit guess yours adds %'s now, you've made an update since I last played with it
  • 01-13-2011, 04:49 PM
    anthonym
    Re: So what is the math behind a punnet square?
    I would assume its just simple Matrix calculations. What language are you writing this in? Search for a Matrix library for your language of choice and read the docs for it.
  • 01-14-2011, 03:52 AM
    thb
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by OhhWatALoser View Post
    yea, also it doesn't add %'s which really bothers me lol, other than that its great. I just wanted to expand on it, add rules, add %'s, have it so you can type in the morphs, not have to scroll through them. Your wizard is by far the most recommended tho, I'd personally like a different layout, so thats what i'm doing.

    well I came up with a method today, going to attempt to make it work, We shall see.

    Edit guess yours adds %'s now, you've made an update since I last played with it

    It has had % in every version, this time its just better at adding the results together...

    Which design would you like to see ?

    Thomas
  • 01-14-2011, 08:50 AM
    j_h_smith
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by OhhWatALoser View Post
    So I was playing around with some thing today, and was attempting to make a punnet square calc. but for the life of me, I can't figure out the math behind it, i only took up to high school trig tho lol.

    I can do them on paper easily, but when it comes to make the computer understand what I want, I'm at a lost.

    I don't know anything about programming, i do believe this guy got it right. See what you think.

    http://geneticcalculator.traxxtec.de/en/rechner.aspx

    Realize there are a number of different snakes, just remember to click on Ball Python or you will go to corn snakes.

    Not a complete list, but better than anything I've seen so far. Seems to be accurate too.

    Jim Smith
  • 01-14-2011, 02:22 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by thb View Post
    It has had % in every version, this time its just better at adding the results together...

    Which design would you like to see ?

    Thomas

    that was the part that really bothered me, but you fixed it. atleast for alot of them

    I like typing in things better than scrolling through a list
    like this one....http://www.geneticswizard.com/ its just a general calc tho, not made for snakes

    you notice yours crashes for some things, like breed a banana + something x banana + something or a zebra + something x zebra +something

    also zebra pastel says its a codom but when i breed zebra x zebra it spits out 25% normal/50% zebra/25%normal?

    Quote:

    Originally Posted by j_h_smith View Post
    I don't know anything about programming, i do believe this guy got it right. See what you think.

    http://geneticcalculator.traxxtec.de/en/rechner.aspx

    Realize there are a number of different snakes, just remember to click on Ball Python or you will go to corn snakes.

    Not a complete list, but better than anything I've seen so far. Seems to be accurate too.

    Jim Smith

    I already notice the german calc is missing "banana" is it outdated?
  • 01-14-2011, 07:29 PM
    alan1
    Re: So what is the math behind a punnet square?
    soo - if you can do them on paper, why not stick to it?

    i either: use my head, or pen and paper - can't be assed with those genetics sites - takes too long
    by the time you've found the site/typed in the info/etc - you could probably already have the answer on paper
    also - you'd have a written record of your findings, so shouldn't need to re-visit the site?
  • 01-14-2011, 07:53 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by alan1 View Post
    soo - if you can do them on paper, why not stick to it?

    i either: use my head, or pen and paper - can't be assed with those genetics sites - takes too long
    by the time you've found the site/typed in the info/etc - you could probably already have the answer on paper
    also - you'd have a written record of your findings, so shouldn't need to re-visit the site?

    once you go past 3 genes, its faster to use the calc, im not drawing 64 boxes lol. personally, I can still do 3 in my head pretty fast, but not alot of people can. its nice to have a full layout calculated for you, nice a neat, no boxes to add up and all that.

    When you start doing super pastel/spider/pin/het hypo to a pastel/pin/hypo/black pastel, your looking at alot of time. lol
  • 01-15-2011, 05:21 PM
    thb
    None of the other calculation tools you have shown works better than World of Ball Pythons Genetic Wizard...

    geneticcalculator: small list of animals, and it doesnt work correct with dominant genes, and iam pretty sure that it would run into the same problems as ours with the crazy genes.

    geneticswizard: same problem as our with the crazy genes, and its has no list of animals, so I think its pretty hard to use.

    So we cant conclude that right there is no perfect calculator online for Balls ;)
  • 01-15-2011, 05:44 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by thb View Post
    So we cant conclude that right there is no perfect calculator online for Balls ;)

    yet ;)
  • 01-16-2011, 07:13 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Sorry guys, I have no idea how to test this other than to post it, hopefully I get this figured out soon and then i can post the site link so people can help me troubleshoot it.

  • 01-16-2011, 08:31 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Alrite guys, here the skeleton version, so go ahead and tear it apart and lemme know whats screwed up. I tested it on firefox 3.6.13 and IE 8. so if you use another browser and have problems lemme know. Also just need comments on how it works as far as functions, layout, and accuracy, I will make it look better sometime later. just grabbed a default web template lol.

    some things I still have to add:

    Make auto suggest work with arrow keys, you click on em with your mouse right now.
    Add Rules for complexes
    Add combo names (ex. "Homozygous Pastel" replaced with "Super Pastel" or "Pastel/Spider" with Bumblebee)
    Side notes for complex genes

    http://matchheadstudios.com/mattsroot/genetics.php
  • 01-17-2011, 04:18 AM
    faceguydb
    Re: So what is the math behind a punnet square?
    Sweet calculator. Must be quite some programmer behind it.
  • 01-17-2011, 08:06 AM
    thb
    Re: So what is the math behind a punnet square?
    It looks like good start :)

    Here are some things:

    - Morph list is small
    - It doesnt calc the genes together (het albino, het albino should say homo albino)
    - It prints homo (super) with dom x dom breeding
    - It works wrong with the crazy genes.
    - You are missing combo names ( as you wrote your self )
  • 01-17-2011, 09:55 AM
    Gloryhound
    These calculators are all cool little bells and whistles, but it takes the fun away. I love sitting down and doing ball python Punnett squarse. That is part of the fun in the hobby. Ball python genetics to date are pretty simple and straight forward. Now I am trying to work into corn snake genetics, these buggers are confusing due to cross interactions and such. I guess the crosses are kinda like the Leucistic complex in balls, but we will see if I can get my head wrapped around them.
  • 01-17-2011, 10:50 AM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by thb View Post
    It looks like good start :)

    Here are some things:

    - Morph list is small
    - It doesnt calc the genes together (het albino, het albino should say homo albino)
    - It prints homo (super) with dom x dom breeding
    - It works wrong with the crazy genes.
    - You are missing combo names ( as you wrote your self )

    i have every single proven base morph on the list, unless you see one I missed? lemme know


    seems to work to me?

    all doms should have a homozygous form, just it will look like the heterozygous version, only proven ones are the congo and pinstripe tho. all the other ones are unproven.

    still gotta work on the complex stuff and replace combo names yea

    Quote:

    Originally Posted by Gloryhound View Post
    These calculators are all cool little bells and whistles, but it takes the fun away. I love sitting down and doing ball python Punnett squarse. That is part of the fun in the hobby. Ball python genetics to date are pretty simple and straight forward. Now I am trying to work into corn snake genetics, these buggers are confusing due to cross interactions and such. I guess the crosses are kinda like the Leucistic complex in balls, but we will see if I can get my head wrapped around them.

    once your doing 3 genes it can get annoying, pewter/lesser x pewter/lesser, your looking at 64 squares and alot of combining

  • 01-17-2011, 01:21 PM
    wax32
    Make enough lines where people can breed two 5 gene snakes. :D

    Looking good so far!
  • 01-17-2011, 01:26 PM
    wax32


    That seems BROKE. :D


    I put the het albino male and the homo albino female on different lines... if you put them on the same line it works properly...



  • 01-17-2011, 01:30 PM
    wax32
    Eventually it would be nice to not see homozygous at all (it would be implied) and just "het" instead of heterozygous.
  • 01-17-2011, 01:33 PM
    wax32
    I think I confused myself! Nevermind!
  • 01-17-2011, 02:01 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by wax32 View Post
    Make enough lines where people can breed two 5 gene snakes. :D

    Looking good so far!

    Well i set it up for worst case scenario, 7 genes all hets, if i go 8 it times out, so i left it at 7. takes a while to receive data from 7 lol

    Quote:

    Originally Posted by wax32 View Post
    I put the het albino male and the homo albino female on different lines... if you put them on the same line it works properly

    yea no reason to type albino twice :), Ill look into something that doesn't allow you to do that i guess lol

    Quote:

    Originally Posted by wax32 View Post
    Eventually it would be nice to not see homozygous at all (it would be implied) and just "het" instead of heterozygous.

    working on that right now, atleast omitting the homozygous part, im leaving heterozygous tho, more people need to understand what het means lol. It bothers me when your trying to explain genetics to someone and you mention a "het pastel" and someone pips up and says "you can't have a het pastel, its co-dom".....-_-... obviously you don't know what het means. i mean it would say just pastel or yellow belly, but it will say heterozygous albino and what not

    i also got my own domain now, figured id get one at some point, so why not now?
    http://www.owalreptiles.com/genetics.php
  • 01-17-2011, 11:27 PM
    faceguydb
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by wax32 View Post
    Make enough lines where people can breed two 5 gene snakes. :D

    Looking good so far!

    1,048,576 Combos. No thank you.

    Quote:

    Originally Posted by wax32 View Post

    That seems BROKE. :D


    I put the het albino male and the homo albino female on different lines... if you put them on the same line it works properly...

    Thats saying that they are two different traits. Plus there is no fix for this the problem being.

    Albino Homo, Het
    Albino Het, Homo

    So is it Homo, Het. Homo, Homo. Het, Het. Or Het, Homo

    You can pound any calculation you want in to a calculator and it will give you the correct answer.. to what you pounded in. Irrelevant of what you wanted.

    Also this must be left open because if two different genes cause the same thing and might be both called the same or similar they will still have to be treated different.
  • 01-19-2011, 07:09 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    alrite, if I'm gonna screw it up, this is most likely where, I added a check box to use trade names and also a check box to abbreviate heterozygous and homozygous. I'm sure I missed alot of names and I wrote a database of over 300 changes, so im sure I added a space where it didn't belong or something, so if something doesn't display right, or a combo is wrong or anything, lemme know.

  • 01-19-2011, 08:19 PM
    wax32
    I saw you got your own domain... I think EVERYONE ought to have one. :D

    I'm liking the combo names... when applicable. I'll play with it some more and see what I see. :D
  • 01-19-2011, 08:21 PM
    wax32
    Rarrrrrrr....

  • 01-19-2011, 08:23 PM
    wax32
    Sometimes Albino drops the "o" and sometimes there is no space behind a comma. Little details...

    By the way I listed albino on the same line for male and female on that one and it listed Albino and Homo. Albin. Dunno

    Super Pastel, Albino, Genetic Stripe, Ivory, Sunglow, Firemon, Homo. Albin

    Is sunglow hypo albino? seems like albino is getting listed three times in the same animal.
  • 01-19-2011, 09:28 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by wax32 View Post
    Sometimes Albino drops the "o" and sometimes there is no space behind a comma. Little details...

    By the way I listed albino on the same line for male and female on that one and it listed Albino and Homo. Albin. Dunno

    Super Pastel, Albino, Genetic Stripe, Ivory, Sunglow, Firemon, Homo. Albin

    Is sunglow hypo albino? seems like albino is getting listed three times in the same animal.

    copy and paste just the parents and ill take a look at it, its the first table in the "post on ball pythons.net" par

    nvm didn;t noticed u posted the table above lol ill look into it
  • 01-19-2011, 10:12 PM
    OhhWatALoser
    yup I had some spaces where the didn't belong, thx for pointing that out, should be fixed now, lemme know if you find more. and btw yes a sunglow is an albino hypo

  • 02-01-2011, 06:35 AM
    montano
    Re: So what is the math behind a punnet square?
    I have the feeling that the punnet square calculator makes use of simple mathematics. I would request him to do the mathematics on paper, scan it and upload it so that we will be able to know the secret behind it. Anyway I found the genetic calculator pretty difficult to use. I couldn’t follow the language.
  • 02-01-2011, 07:22 AM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by montano View Post
    I have the feeling that the punnet square calculator makes use of simple mathematics. I would request him to do the mathematics on paper, scan it and upload it so that we will be able to know the secret behind it. Anyway I found the genetic calculator pretty difficult to use. I couldn’t follow the language.

    I emailed every genetics calculator, reptile related or not, on the math behind the punnet square and got no response from anyone, expect some guy telling me to figure it out myself (actually what he said I would get another infraction for repeating). So thats what I did. But after getting no help from the community in this area, im not giving out the source code, tho it will be free to use. btw it wouldn't fit on one piece of paper.

    What did you find difficult about it, do you not understand heterozygous and homozygous? I was thinking it would need a "how-to". most people don't get genetic explained to them correctly. lemme know what got you stuck and ill explain it.

    im still working on getting the complexes to work, I got it to the point where it will do like butter/lesser x lesser correct and butter/lesser x mojave/mystic. just it get confused when both animals have the same complex with the same gene lesser/butter x butter/mojave. still working that bug out then I will update the original calculator. but I am working on it, just havn't had much time.
  • 02-01-2011, 08:14 AM
    mommanessy247
    Re: So what is the math behind a punnet square?
    m...m...math?
    AAAAHHHH!!!!!!!!!!

    :bolt:
  • 02-01-2011, 08:41 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Alrite, I added complexes. Let me know if something seems screwed up.

    http://www.owalreptiles.com/genetics.php


  • 02-01-2011, 09:15 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by montano View Post
    I have the feeling that the punnet square calculator makes use of simple mathematics. I would request him to do the mathematics on paper, scan it and upload it so that we will be able to know the secret behind it. Anyway I found the genetic calculator pretty difficult to use. I couldn’t follow the language.

    if you wanted to do it on paper yourself... http://en.wikipedia.org/wiki/Punnett_square
  • 02-09-2011, 02:51 AM
    faceguydb
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by montano View Post
    I have the feeling that the punnet square calculator makes use of simple mathematics. I would request him to do the mathematics on paper, scan it and upload it so that we will be able to know the secret behind it. Anyway I found the genetic calculator pretty difficult to use. I couldn’t follow the language.

    Well this is the math iv written out. Its a simple punnett.
    http://i1044.photobucket.com/albums/...ydb/punnet.jpg

    If your wondering about the calculator:
    http://i1044.photobucket.com/albums/...eticcalc-1.jpg
    or something close to that.
    http://upload.wikimedia.org/wikipedi...ksort_anim.gif
    I might change to American flag sort for speed.
  • 02-21-2011, 03:57 PM
    wax32
    This seems to need a bit more tweaking... some of the combo names overlap or something:


    Male:|Sterling Bee
    Female:|Emperor Pin
    3.125%|1/32|Super Pastel, Butter, Cinnaspin
    3.125%|1/32|Super Pastel, Butter, Cinnapin
    3.125%|1/32|Butter, Killer Blast
    3.125%|1/32|Butter, Super Blast
    3.125%|1/32|Super Pastel, Cinnaspin
    3.125%|1/32|Super Pastel, Cinnapin
    3.125%|1/32|Killer Blast
    3.125%|1/32|Super Blast
    3.125%|1/32|Butter, Sterlingbee
    3.125%|1/32|Butter, Sterling Pastel
    3.125%|1/32|Super Pastel, Butterbee
    3.125%|1/32|Super Pastel, Butter
    3.125%|1/32|Sterlingbee
    3.125%|1/32|Sterling Pastel
    3.125%|1/32|Killerbee
    3.125%|1/32|Super Pastel
    3.125%|1/32|Cinnamon, Queenspin
    3.125%|1/32|Cinnamon, Emperor Pin
    3.125%|1/32|Queenspin
    3.125%|1/32|Emperor Pin
    3.125%|1/32|Pinstripe, Pewterbee
    3.125%|1/32|Pastel, Cinnapin
    3.125%|1/32|Spinner Blast
    3.125%|1/32|Lemon Blast
    3.125%|1/32|Butter, Pewterbee
    3.125%|1/32|Butter, Pewter
    3.125%|1/32|Queenbee
    3.125%|1/32|Pastel, Butter
    3.125%|1/32|Pewterbee
    3.125%|1/32|Pewter
    3.125%|1/32|Bumblebee
    3.125%|1/32|Pastel
    ||Table and Calculation By OWALReptiles

    Am I misunderstanding? Killer Blast/Super Blast the same thing? Is Sterling Pastel the same as Sterling?
  • 02-21-2011, 04:03 PM
    wax32
    By the way, awesome job with the calculator!
  • 02-21-2011, 04:10 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by wax32 View Post
    Am I misunderstanding? Killer Blast/Super Blast the same thing? Is Sterling Pastel the same as Sterling?

    thats why I made this page
    http://www.owalreptiles.com/tradenames.php

    Killer blast = super pastel/spider/pin
    Super blast = super pastel/pin
    Sterling Pastel = Sterling = Super pastel/cinny

    and thanks
  • 02-21-2011, 04:49 PM
    OhhWatALoser
    I just reread what you wrote, are you possibly looking at cinnapin and cinnaspin?
    cinnapin = cinnamon/pinstripe
    cinnaspin= cinnamon/pinstripe/spider
  • 02-21-2011, 05:01 PM
    texanborn
    Re: So what is the math behind a punnet square?
    Okay I might not be clicking the correct things but,

    When I try het. Piebald female X het. Piebald male I get Error message. It should be basic 25% normal, 50% het Piebald, 25% Piebald correct?

    Again it could be the silly human over here:taz: just let me know if my wits have gone begging!

    Awesome programming!
  • 02-21-2011, 05:09 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by texanborn View Post
    Okay I might not be clicking the correct things but,

    When I try het. Piebald female X het. Piebald male I get Error message. It should be basic 25% normal, 50% het Piebald, 25% Piebald correct?

    Again it could be the silly human over here:taz: just let me know if my wits have gone begging!

    Awesome programming!

    I only have 2 error message, one is if you put 3 gene of the same complex in one snake (ex. mojave/lesser/butter) and the other is if you have the same trait in the calc twice, which im assuming is what you have.

    for that pairing you just need to put piebald in one line and click the male het and the female het on that same line. then click breed

  • 02-21-2011, 05:47 PM
    wax32
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by texanborn View Post
    Okay I might not be clicking the correct things but,

    When I try het. Piebald female X het. Piebald male I get Error message. It should be basic 25% normal, 50% het Piebald, 25% Piebald correct?

    Again it could be the silly human over here:taz: just let me know if my wits have gone begging!

    Awesome programming!

  • 02-21-2011, 05:49 PM
    wax32
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by OhhWatALoser View Post
    thats why I made this page
    http://www.owalreptiles.com/tradenames.php

    Killer blast = super pastel/spider/pin
    Super blast = super pastel/pin
    Sterling Pastel = Sterling = Super pastel/cinny

    and thanks

    http://www.worldofballpythons.com/morphs/killer-blast/

    I thought Killer Blast = super pastel pinstripe = super blast
  • 02-21-2011, 06:02 PM
    OhhWatALoser
  • 02-21-2011, 06:44 PM
    wax32
    Thanks! Clears things up. I think the photos on the link I gave actually have spider in them... I guess that guy made a mistake. :D
  • 02-21-2011, 06:48 PM
    wax32
    By the way this list:

    http://www.owalreptiles.com/tradenames.php

    is really cool. Any way you could sort it totally alphabetically instead of breaking it up into single/double/triple+ morphs?
  • 02-21-2011, 06:56 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by wax32 View Post
    By the way this list:

    http://www.owalreptiles.com/tradenames.php

    is really cool. Any way you could sort it totally alphabetically instead of breaking it up into single/double/triple+ morphs?

    I guess I could add some headers above each single/double/triple/ect. might make it a little easier to read.
  • 02-21-2011, 07:36 PM
    texanborn
    Re: So what is the math behind a punnet square?
    Thanks OhhWatALoser! I figured it was me clicking the wrong thing!:gj:
  • 02-21-2011, 07:40 PM
    wax32
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by OhhWatALoser View Post
    I guess I could add some headers above each single/double/triple/ect. might make it a little easier to read.

    That could work too... but some might not know if a morph is single/double/triple/ etc., ya know? Just trying to keep it simple.
  • 02-21-2011, 08:05 PM
    OhhWatALoser
    Re: So what is the math behind a punnet square?
    Quote:

    Originally Posted by wax32 View Post
    That could work too... but some might not know if a morph is single/double/triple/ etc., ya know? Just trying to keep it simple.

    ctrl + f is gonna be the easiest way to find what your looking for no matter how i organize it, there over 300 changes.

    maybe if i had a search box on top of the page....maybe ill look into that
Powered by vBadvanced CMPS v4.2.1