Skip to content

Simple python script for phenotypic percentage calculation

License

Notifications You must be signed in to change notification settings

IfYouThenTrue/alleles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Alleles

Simple python script for phenotypic percentage calculation.

After importing the Genetica.py, you will be able to use the Parental Class.

from Genetica import Parental

Then, you can define objects in this class. Pass the alleles as a string argument.

mother = Parental("Aa")
father = Parental("aa")

Methods:

  • Procriar(object) : self.result is now an array of the new alleles possibilities
mother.Procriar(father)
print(mother.result)

#or print(father.result)

      Output: ['Aa', 'Aa', 'aa', 'aa']

  • Porcento() : self.porcento is now an array of the alleles appearing percentage
mother.Porcento()
print(mother.porcento)

      Output: Possibilidades: Aa aa
                   [('Aa', '50.0%'), ('aa', '50.0%')]

  • Analise() : shows the percentage
mother.Analise()

      Output : Aa : 50.0%
                     aa : 50.0%

All commands are in Brazilian Portuguese, if you are wondering

About

Simple python script for phenotypic percentage calculation

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages