Natural Sort of File List Array
Posted by
Cameron Nowell-2 on
Feb 25, 2015; 11:17pm
URL: http://imagej.273.s1.nabble.com/Natural-Sort-of-File-List-Array-tp5011777.html
Hi List,
I am batch processing a time series captured on a GE INCell imager. The
files have names like C - 9(fld 1 wv CFP - CFP- time 1 - 0 ms). The issue is
the Time 1 part. In windows explorer or mac finder they are ordered as time
1, time2, time 3, time 4, time 5......etc. If I load them into a stack using
the load image sequence command they load in the right order. But if I use a
macro to select a directory and build a file list it loads them in the order
time 1, time 10, time 11, time 12.......time 19, time 2, time 20, time
21...... etc.
Is there any way to get the file list array to sort in a different order so
the timepoints don't get messed up?
Cheers
Cam
Cameron J. Nowell
Research Facilities Manager
Imaging, FACS and Analysis Core
Monash Institute of Pharmaceutical Sciences
Monash University
399 Royal Parade
(Mail address: 381 Royal Parade)
Parkville, VIC, 3052
Australia
Email:
[hidden email]
Mobile: +61 422882700
Office: +61 9903 9587
LinkedIn: Profile
Research Gate: Profile
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html