pyp_classes contains two base classes that are used by PyPedal, the Animal() class and the Pedigree() class. What most PyPedal routines recognize as a pedigree is actually just a Python list of Animal() objects. An instance of a Pedigree() object is a collection of METADATA about a list of Animals(). I know that this is confusing, and it is going to change by the time that PyPedal 2.0.0 final is released.
The Animal() class is holds animals records read from a pedigree file.
For more information about this class, see The Animal Class.
The Pedigree() class stores metadata about pedigrees.
For more information about this class, see The Pedigree Class.
The Animal() class is holds animals records read from a pedigree file.
__init__() initializes an Animal() object.
pad_id() takes an Animal ID, pads it to fifteen digits, and prepends the birthyear (or 1950 if the birth year is unknown). The order of elements is: birthyear, animalID, count of zeros, zeros.
printme() prints a summary of the data stored in the Animal() object.
stringme() returns a summary of the data stored in the Animal() object as a string.
trap() checks for common errors in Animal() objects
The Pedigree() class stores metadata about pedigrees. Hopefully this will help improve performance in some procedures, as well as provide some useful summary data.
__init__() initializes a Pedigree metata object.
fileme() writes the metada stored in the Pedigree() object to disc.
nud() returns the number of unique dams in the pedigree along with a list of the dams
nuf() returns the number of unique founders in the pedigree along with a list of the founders
nug() returns the number of unique generations in the pedigree along with a list of the generations
nus() returns the number of unique sires in the pedigree along with a list of the sires
nuy() returns the number of unique birthyears in the pedigree along with a list of the birthyears
printme() prints a summary of the metadata stored in the Pedigree() object.
stringme() returns a summary of the metadata stored in the pedigree as a string.