We have files from multiple stage positions, each timepoint saved as a separate file. For instance:
tlpscontrol_S0000(P1)_T000000.tif tlpscontrol_S0000(P1)_T000001.tif tlpscontrol_S0000(P1)_T000002.tif When we use File > Import > Image Sequence and enter for File name contains: "(P1)" the parentheses appear to be ignored because all files with "P1" in the name, including "P10", "P11", etc. are opened into the sequence too. Regards, Michael ========================================================================= Michael Cammer, Microscopy Core & Skirball Institute, NYU Langone Medical Center Cell: 914-309-3270 Office: Skirball 2nd Floor main office, back right a.k.a. The Coldroom http://ocs.med.nyu.edu/microscopy & http://microscopynotes.com/ ------------------------------------------------------------ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. ================================= -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Michael,
The File>Import>Image Sequence dialog says below the "File name contains" window: "enclose egexp in parens" This means that if you type something enclosed by paretheses, it is treated as regular expression. In your case, you could enter "(P1)_". This does not end with parentheses but an underscore, it will be interpreted as plain text. Alternatively, create a regexp that fits your file names, and enclose it in parentheses. I guess that the following might work: (.*\(P1\).*) Michael ________________________________________________________________ On 2016-06-22 18:15, Cammer, Michael wrote: > We have files from multiple stage positions, each timepoint saved as a separate file. For instance: > tlpscontrol_S0000(P1)_T000000.tif > tlpscontrol_S0000(P1)_T000001.tif > tlpscontrol_S0000(P1)_T000002.tif > > When we use File > Import > Image Sequence and enter for File name contains: "(P1)" the parentheses appear to be ignored because all files with "P1" in the name, including "P10", "P11", etc. are opened into the sequence too. > > Regards, > Michael > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Thank you.
I'm using Win7 (and I'm sure there's something similar in Linux) so I solved the problem with ren ??????????(??)*.tif ??????????x??x*.tif ========================================================================= Michael Cammer, Microscopy Core & Skirball Institute, NYU Langone Medical Center Cell: 914-309-3270 Office: Skirball 2nd Floor main office, back right a.k.a. The Coldroom http://ocs.med.nyu.edu/microscopy & http://microscopynotes.com/ -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid Sent: Wednesday, June 22, 2016 1:29 PM To: [hidden email] Subject: Re: File Import bug? Hi Michael, The File>Import>Image Sequence dialog says below the "File name contains" window: "enclose egexp in parens" This means that if you type something enclosed by paretheses, it is treated as regular expression. In your case, you could enter "(P1)_". This does not end with parentheses but an underscore, it will be interpreted as plain text. Alternatively, create a regexp that fits your file names, and enclose it in parentheses. I guess that the following might work: (.*\(P1\).*) Michael ________________________________________________________________ On 2016-06-22 18:15, Cammer, Michael wrote: > We have files from multiple stage positions, each timepoint saved as a separate file. For instance: > tlpscontrol_S0000(P1)_T000000.tif > tlpscontrol_S0000(P1)_T000001.tif > tlpscontrol_S0000(P1)_T000002.tif > > When we use File > Import > Image Sequence and enter for File name contains: "(P1)" the parentheses appear to be ignored because all files with "P1" in the name, including "P10", "P11", etc. are opened into the sequence too. > > Regards, > Michael > -- ImageJ mailing list: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=CwIC-g&c=j5oPpO0eBH1iio48DtsedbOBGmuw5jHLjgvtN2r4ehE&r=oU_05LztNstAydlbm5L5GDu_vAdjXk3frDLx_CqKkuo&m=bpQM138Gg5M5pIirfYcNCGxQhIbGFcylexwtuz6_ZA0&s=o7UDsqmG_XgZykwezOaR0JIRA-prKdvHBMxDJzJluk4&e= ------------------------------------------------------------ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. ================================= -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |