On 25/09/2020 15:28, Yong Tang wrote:

When we read in an NMR model that has an ensembleĀ of 23 structures, how do we display only one of them for clarity and simplicity?

The only command that I found related to NMR models is "n-models 1mol" in this link: https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/web/docs/coot.html

I'm sure I must have missed something?

You did.  Because (sadly) the published documentation is inconsistent with the 
source code.

You need the single-model-view functions. Try the attached. You can see, I 
hope, how to change the flip time.

Use single-model-view-model-number to select a particular model.

Paul.

########################################################################

To unsubscribe from the COOT list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT&A=1

This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list 
hosted by www.jiscmail.ac.uk, terms & conditions are available at 
https://www.jiscmail.ac.uk/policyandsecurity/
(define multi-model-swapper-flip-time 300)

(define (stop-multi-model-swapper) #t)

(define (multi-model-swapper imol)

  (single-model-view-next-model-number imol)
  (stop-multi-model-swapper))



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

      (add-simple-coot-menu-menuitem
       menu "Multi-Model View this Molecule"
        (lambda ()
          (set! stop-multi-model-swapper (lambda() #t))
          (using-active-atom
          (gtk-timeout-add multi-model-swapper-flip-time (lambda() 
(multi-model-swapper aa-imol))))))

      (add-simple-coot-menu-menuitem
       menu "Reset Multi-Model View this Molecule"
        (lambda ()
          (set! stop-multi-model-swapper (lambda() #t))
          (using-active-atom
           (single-model-view-model-number aa-imol 0))))


      (add-simple-coot-menu-menuitem
       menu "Stop Multi-Model View"
       (lambda ()
          (set! stop-multi-model-swapper (lambda () #f))))))


########################################################################

To unsubscribe from the COOT list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT&A=1

This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list 
hosted by www.jiscmail.ac.uk, terms & conditions are available at 
https://www.jiscmail.ac.uk/policyandsecurity/

Reply via email to