code: public static void save(Pedigree pedigree, Path pedigreePath) throws IOException {
          final OutputStream os = new FileOutputStream(pedigreePath.toFile());
          // Sanity check
          if (pedigree != null) {
              writeHeader(pedigree, os);
              write(pedigree, os);
          }
          // Close
          os.close();
      }
docs: Save a Pedigree object into a Pedigree format file.
  
  @param pedigree      Pedigree object
  @param pedigreePath  Path to the Pedigree file