Re: [Jmol-users] Numbering lines of array?

2015-08-25 Thread Eric Martz
Incredible, Bob! Perfection in one line! Voila! (I suspect there are only a handful of people in the world who could come up with that second line of code, and I'm not one of them. Well I'll learn a bit more about Jmol code from your amazing line of code.) Yes you have earned a big grin many

Re: [Jmol-users] Numbering lines of array?

2015-08-25 Thread Robert Hanson
with right-justification of the serial numbers: {*}.atomIndex.all[1][b.length].add(1).format("%5i").join(b).join("\t",true) ​ -- ___ Jmol-users mailing list Jmol-users@lists.sou

Re: [Jmol-users] Numbering lines of array?

2015-08-25 Thread Robert Hanson
b = {occupancy<1.0}.label("%3n\t%4R\t%3E\t%3c\t%4e\t%a\t%3A\t%3.2Q\t%3.2t") print {*}.atomIndex.all[1][b.length].add(1).join(b).join("\t",true) :) Bob On Tue, Aug 25, 2015 at 6:31 PM, Eric Martz wrote: > This generates a nice tab-delimited (spreadsheet ready) list of atom > properties: >

[Jmol-users] Numbering lines of array?

2015-08-25 Thread Eric Martz
This generates a nice tab-delimited (spreadsheet ready) list of atom properties: x = jmolEvaluate('{occupancy<1.0}.label("%3n\t%4R\t%3E\t%3c\t%4e\t%a\t%3A\t%3.2Q\t%3.2t")'); Like this: Group SeqNo Ins Chain Element AtomAltLoc Occ Temp GLU 59 AN