4.3.3 Text Files

The NewPedigree::save() method writes a PyPedal pedigree to a user-specified file with either the format specified in the pedigree format string (default) or a format including all variables in the pedigree ("outformat='l'"). Either the original (default) or renumbered ("idformat='r'") IDs can be used for animal, sire, and dam IDs. In the following example all variables are written to a file named "all_data.ped" using the same IDs as in the original file:
test.save(filename='all_data.ped',outformat='l',idformat='o')
NewPedigree::save() tries never to overwrite your data. If you do not pass a filename argument a file whose name is derived from, but not the same as, the original pedigree filename will be used. The string "_saved" will be appended to the filename in order to distinguish it from the original pedigree file.

See About this document... for information on suggesting changes.