On 06/09/2017 16:03, Emilia C. Arturo (Emily) wrote:
> Hello.
>
> I wonder whether there is a way to turn off recentring when moving along from residue to residue within a
> single molecule? I'd like for Coot to not recentre (or ... recenter :-)) automatically so that I can see
> where the breaks in the backbone occur relative to the entire structure or relative to where the next built
> piece occurs. Understanding where the discontinuities in the model occur is difficult to do when centring on
> the current atom is done by default once I've navigated there with the space bar.
Hello Emily,
Perhaps you want to see the residue atom label advance as you step through the residues of a chain? Here are
some buttons in a dialog that does that - put this script in you $HOME/.coot-preferences directory.
Regards,
Paul.
(if (defined? 'coot-main-menubar)
(let ((menu (coot-menubar-menu "Labels")))
(add-simple-coot-menu-menuitem
menu "Advancing Labels"
(lambda ()
(using-active-atom
(let ((n-res (chain-n-residues aa-chain-id aa-imol))
(i-serial 0)
(atom-label-idx -1))
(let* ((fn (lambda (incr)
(set! i-serial (+ i-serial incr))
(if (= i-serial n-res) (set! i-serial 0))
(let ((res-no (seqnum-from-serial-number aa-imol aa-chain-id i-serial)))
(remove-all-atom-labels)
(add-atom-label aa-imol aa-chain-id res-no " CA ")
(graphics-draw)))))
(dialog-box-of-buttons "Advancing Labels" (cons 200 60)
(map (lambda (dir fn)
(list (string-append "Label " dir " Residue") fn))
(list "Next" "Prev") (list (lambda() (fn 1)) (lambda() (fn -1))))
" Close "))))))))
|