28
edits
Bernhardcl (talk | contribs) No edit summary |
Bernhardcl (talk | contribs) No edit summary |
||
Line 86: | Line 86: | ||
add_status_bar_text("Rotamer name: " + name) | add_status_bar_text("Rotamer name: " + name) | ||
add_key_binding("Rotamer name in Status Bar", "~", lambda: key_binding_func_5()) | add_key_binding("Rotamer name in Status Bar", "~", lambda: key_binding_func_5()) | ||
def key_binding_func_6(): | |||
from types import ListType | |||
active_atom = active_residue() | |||
if (not active_atom): | |||
add_status_bar_text("No active residue") | |||
else: | |||
imol = active_atom[0] | |||
chain_id = active_atom[1] | |||
res_no = active_atom[2] | |||
ins_code = active_atom[3] | |||
atom_name = active_atom[4] | |||
alt_conf = active_atom[5] | |||
centred_residue = active_atom[1:4] | |||
other_residues = residues_near_residue(imol, centred_residue, 3) | |||
all_residues = [centred_residue] | |||
if (type(other_residues) is ListType): | |||
all_residues += other_residues | |||
print "imol: %s residues: %s" %(imol, all_residues) | |||
refine_residues(imol, all_residues) | |||
add_key_binding("Refine residues in a sphere", "R", lambda: key_binding_func_6()) | |||
</pre> | </pre> |
edits