Opening series of pdb's in incorrect sequential order

I have a series of pdb's in a folder numbered 1 - 500 (so 1.pdb ... 500.pdb). I'm opening them in ChimeraX using *.pdb. I'm expecting 1.pdb to have ID1 and 2.pdb to to be ID2, but it appears ChimeraX is only looking at the first digit and not the whole number. Is there a way around this? For now, my work around is to use 001, 002 ... 500 instead [cid:d19d2d17-71bb-430f-8a09-65921a0ca962] Alex Lee PhD Student Woods Research Group<https://woodsgroup.franklinresearch.uga.edu/> Department of Biochemistry & Molecular Biology Complex Carbohydrate Research Center University of Georgia 315 Riverbend Rd. Athens, GA 30602 Email: ahl63010@uga.edu Mobile: (470) 641-3884

Hi Alex, That's "Unix order", i.e. the same order that the 'ls' command returns them. ChimeraX is using Python's "glob" module to expand "*.pdb" into a list of file names. Therefore you could use a different "glob" to get the order you want, namely "open ?.pdb ??.pdb ???.pdb" (with folder names prepended if necessary. --Eric Eric Pettersen UCSF Computer Graphics Lab
On Oct 13, 2023, at 8:58 AM, Alexander Hung Lee via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
I have a series of pdb's in a folder numbered 1 - 500 (so 1.pdb ... 500.pdb). I'm opening them in ChimeraX using *.pdb.
I'm expecting 1.pdb to have ID1 and 2.pdb to to be ID2, but it appears ChimeraX is only looking at the first digit and not the whole number. Is there a way around this? For now, my work around is to use 001, 002 ... 500 instead <image.png>
Alex Lee PhD Student Woods Research Group <https://woodsgroup.franklinresearch.uga.edu/> Department of Biochemistry & Molecular Biology Complex Carbohydrate Research Center University of Georgia
315 Riverbend Rd. Athens, GA 30602 Email: ahl63010@uga.edu <mailto:ahl63010@uga.edu> Mobile: (470) 641-3884 _______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu> To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu <mailto:chimerax-users-leave@cgl.ucsf.edu> Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/ <https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/>
participants (2)
-
Alexander Hung Lee
-
Eric Pettersen