Next: , Previous: generic-objects, Up: Scheme Scripting Functions


13.20 fitting

— procedure: fit-protein imol

Note that residue with alt confs do not undergo auto-fit-rotamer. This is because that autofit-rotamer then refine will tend to put both rotamers into the same place. Not good. It seems a reasonable expectation that residues with an alternate conformation are already resonably well-fitted. So residues with alternate conformations undergo only real space refinement.

This is simple-minded and outdated now we have the interruptible version (below).

— procedure: *continue-multi-refine*

These 2 variables are used by multi-refine function(s), called by idle functions to refine just one residue.

— procedure: fit-protein-make-specs imol chain-specifier

chain-specifier can be a string, where it is the chain of interest. or 'all-chains, where all chains are chosen.

— procedure: interruptible-fit-protein imol func

func is a refinement function that takes 2 args, one a residue spec, the other the imol-refinement-map. e.g. fit-protein-fit-function

— procedure: fit-chain imol chain-id

For each residue in chain chain-id of molecule number imol, do a rotamer fit and real space refinement of each residue. Don't update the graphics while this is happening (which makes it faster than fit-protein, but much less interesting to look at).

— procedure: fit-waters imol . animate?

For each residue in the solvent chains of molecule number imol, do a rigid body fit of the water to the density.

— procedure: stepped-refine-protein imol . res-step

Step through the residues of molecule number imol and at each step do a residue range refinement (unlike fit-protein for example, which does real-space refinement for every residue).

The step is set internally to 2.

— procedure: stepped-refine-protein-for-rama imol

refine each residue with ramachandran restraints

— procedure: stepped-refine-protein-with-refine-func imol refine-func . res-step
— procedure: post-ligand-fit-gui

The GUI that you see after ligand finding.

— procedure: molecules-matching-criteria test-func

test-func is a function given one argument (a molecule number) that returns either #f if the condition is not satisfied or something else if it is. And that "something else" can be a list like (list label x y z) or (list "Bad Chiral" 0 "A" 23 "" "CA" "A")

It is used in the create a button label and "what to do when the button is pressed".

— procedure: refine-active-residue-generic side-residue-offset

This totally ignores insertion codes. A clever algorithm would need a re-write, I think. Well, we'd have at this end a function that took a chain-id res-no-1 ins-code-1 res-no-2 ins-code-2

And refine-zone would need to be re-written too, of course. So let's save that for a rainy day (days... (weeks)).

— procedure: refine-active-residue

refine active residue

— procedure: refine-active-residue-triple

refine active residue triple

— procedure: manual-refine-residues side-residue-offset

For just one (this) residue, side-residue-offset is 0.

— procedure: pepflip-active-residue

Pepflip the active residue - needs a key binding.

— procedure: auto-fit-rotamer-active-residue

Auto-fit rotamer on active residues

— procedure: add-extra-restraints-to-other-molecule imol chain-id resno-range-start resno-range-end atom-sel-type imol-ref

Restrain the atoms in imol (in give range selection) to corresponding atoms in imol-ref.

atom-sel-type is either 'all 'main-chain or 'ca