For several reasons I have been printing the residue numbers from
selections. This could be just the loops, or interface residues
defined with the script from Jason Vertrees.
I use iterate for this and it works well enough, however I would like
to be able to make:
1. a non-redundant list (e.g. residue 12 will only appear once)
2. adjacent numbers into ranges (e.g. residues 1, 2, 4, 5, 6, 10, 11,
12 would become 1:2, 4:6, 10:12 or something similar)
Any ideas on how to do this best? Ideally this should of course be
possible from within PyMOL, but any kind of script that will work on
your normal linux distribution would make me happy.
Get latest updates about Open Source Projects, Conferences and News.