code: def write_project_summary(samples, qsign_info=None):
      
      work_dir = samples[0][0]["dirs"]["work"]
      out_file = os.path.join(work_dir, "project-summary.yaml")
      upload_dir = (os.path.join(work_dir, samples[0][0]["upload"]["dir"])
                    if "dir" in samples[0][0]["upload"] else "")
      date = str(datetime.now())
      prev_samples = _other_pipeline_samples(out_file, samples)
      with open(out_file, "w") as out_handle:
          yaml.safe_dump({"date": date}, out_handle,
                         default_flow_style=False, allow_unicode=False)
          if qsign_info:
              qsign_out = utils.deepish_copy(qsign_info[0])
              qsign_out.pop("out_dir", None)
              yaml.safe_dump({"qsignature": qsign_out}, out_handle, default_flow_style=False,
                             allow_unicode=False)
          yaml.safe_dump({"upload": upload_dir}, out_handle,
                         default_flow_style=False, allow_unicode=False)
          yaml.safe_dump({"bcbio_system": samples[0][0]["config"].get("bcbio_system", "")}, out_handle,
                         default_flow_style=False, allow_unicode=False)
          yaml.safe_dump({"samples": prev_samples + [_save_fields(sample[0]) for sample in samples]}, out_handle,
                         default_flow_style=False, allow_unicode=False)
      return out_file
docs: Write project summary information on the provided samples.
      write out dirs, genome resources,