code: def _modify_report(summary_path, out_dir):
      
      summary_path = op.abspath(summary_path)
      template = op.normpath(op.join(op.dirname(op.realpath(template_seqcluster.__file__)), "report.rmd"))
      content = open(template).read()
      out_content = string.Template(content).safe_substitute({'path_abs': summary_path})
      out_file = op.join(out_dir, "srna_report.rmd")
      with open(out_file, 'w') as out_handle:
          out_handle.write(out_content)
      return out_file
docs: Read Rmd template and dump with project path.