code: def agp(args):
      
      p = OptionParser(agp.__doc__)
      opts, args = p.parse_args(args)
  
      if len(args) != 2:
          sys.exit(not p.print_help())
  
      evidencefile, contigs = args
      ef = EvidenceFile(evidencefile, contigs)
  
      agpfile = evidencefile.replace(".evidence", ".agp")
      ef.write_agp(agpfile)
docs: %prog agp evidencefile contigs.fasta
  
      Convert SSPACE scaffold structure to AGP format.