code: def phytozome10(args):
      
      from jcvi.apps.biomart import GlobusXMLParser
  
      p = OptionParser(phytozome10.__doc__)
      opts, args = p.parse_args(args)
  
      if len(args) != 1:
          sys.exit(not p.print_help())
  
      species, = args
      """
      cookies = get_cookies()
      # Get directory listing
      dlist = \
      "http://genome.jgi.doe.gov/ext-api/downloads/get-directory?organism=PhytozomeV10"
      d = download(dlist, debug=True, cookies=cookies)
      """
      fp = open("get-directory.html")
      g = GlobusXMLParser(fp)
      g.parse_folder()
docs: %prog phytozome species
  
      Retrieve genomes and annotations from phytozome using Globus API. Available
      species listed below. Use comma to give a list of species to download. For
      example:
  
      $ %prog phytozome Athaliana,Vvinifera,Osativa,Sbicolor,Slycopersicum