Open main menu

Changes

if resiob.spin[0].model == 'NS 2-site expanded':
sel_residues.append( [resiob.spin[0].num, resiob.spin[0]._res_index, resiob.spin[0]._res_name, resiob.spin[0]._res_num, resiob.spin[0].model ] )
 
for p in sel_residues: print p
</source>
Now we want to cluster the residues.<br>
Use '''User functions (n->) -> relax_disp -> cluster'''.<br>
Set '''The cluster ID''' to '''NS2_cluster''' and '''The spin ID string''' to ''':5@N''' for nitrogen at residue number 5.<br>Continue for the residues you want to cluster. Keep the same '''Cluster ID'''. You can inspect which residues you have clustered in the prompt.<source lang="python">cdp.clustering</source> Since we have our selected list from above, it is faster to do:</source>for spin_nu, res_ind, resn, resi, model in sel_residues: relax_disp.cluster('NS2_cluster', ":%s@N"%resi)cdp.clustering</source>
= See also =
[[Category:Tutorials]]
Trusted, Bureaucrats
1,382

edits