Open main menu

Changes

Or open the relax prompt (Ctrl+p) and write
for resiob in cdp.mol[0].res: print resiob.name, resiob.num, resiob.spin[0].model
 
== Select residues for clustering ==
Let us select residue based on a criterion that is the same model which are fit.
 
<source lang="python">
resi_models = []
for resiob in cdp.mol[0].res: resi_models.append(resiob.spin[0].model)
print resi_models
# Count resi_models
dublicates = map(lambda val: (val, [i for i in xrange(len(resi_models)) if resi_models[i] == val]), resi_models)
for dub in dublicates: print dub[0], len(dub[1])
# We see that "NS 2-site expanded" is most represented
</source>
= See also =
[[Category:Tutorials]]
Trusted, Bureaucrats
1,382

edits