6.4 Installing Coot Interface

The coot script file ``flynn.scm'' is included in your flynn distribution in the ``etc'' directory. The following steps are required to integrate flynn with coot.

  1. Install coot (at least version 0.3.3)

  2. Install flynn and writedict somewhere in your path. If you can't run flynn from the command line, neither can coot.

  3. Place ``flynn.scm'' to the coot extensions directory. This is the directory where the files ``extensions.scm'' and ``coot.scm'' are located.

    This directory is typically: /usr/local/coot/scheme

  4. Copy ``flynn.scm'' to the extension list in ``coot.scm'' which is in the same directory as ``extensions.scm''

    To accomplish this, change the following code in ``coot.scm''

    (define load-all-scheme
      (lambda (use-gui?)
    
        (let ((pre-list (list "filter.scm"
    			  "coot-utils.scm"))
    	  (post-list (list "coot-lsq.scm"
    			   "shelx.scm"
    

    to look like this:

    (define load-all-scheme
      (lambda (use-gui?)
    
        (let ((pre-list (list "filter.scm"
    			  "coot-utils.scm"))
    	  (post-list (list "coot-lsq.scm"
    			   "shelx.scm"
             "flynn.scm"
    

  5. Finally, make the following changes to ``extensions.scm''

    At the top of the file, change:

    (if (defined? 'coot-main-menubar)
    
        (let ((menu (coot-menubar-menu "Extensions")))
    

    to become:

    (if (defined? 'coot-main-menubar)
    
        (let ((menu (coot-menubar-menu "Extensions")))
          (add-simple-coot-menu-menuitem menu "Flynn..."
            (lambda () (do-flynn-gui)))
          (add-simple-coot-menu-menuitem menu "Make Dictionary..."
            (lambda () (do-flynn-gendict-gui)))
    

To assist this process, modified versions of coot.scm and extensions.scm are supplied with flynn. These versions have been tested on coot version 0.3.3.