Need some example and commend arguments for (selection.extend_by_residue())
Dear All,
If anyone knows how to use this two commends . Could you tell me the arguments to pass and some example which would be really helpful.
selection.extend_by_residue() -- extend selection by residue selection.by_residue() -- make sure all residues are fully selected
For example: I selected particular region of atoms for optimization following this commend: sI=selection(mdl1.atoms['CA:'+respos+':'+chain].select_sphere(10))
Then , I selected the residues which has single atom in selction through this commend.
s = sI.extend_by_residue(pick_hot_cutoff=12)
And , I want to do the same with selection.extend_by_residue() but I got stuck with arguments for this commend.
Thanking you in advance
On 6/23/16 7:37 AM, Mahesh Velusamy wrote: > If anyone knows how to use this two commends . Could you tell me the > arguments to pass and some example which would be really helpful.
The manual documents the arguments for each command, including these two.
> selection.extend_by_residue() -- extend selection by residue
Takes a single int parameter, which is the length of the extension.
> selection.by_residue() -- make sure all residues are fully selected
Takes no parameters. Is equivalent to calling extend_by_residue(0).
Ben Webb, Modeller Caretaker
participants (2)
-
Mahesh Velusamy
-
Modeller Caretaker