NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #395 (closed enhancement: fixed)

Opened 2009-05-14T11:50:02-05:00

Last modified 2010-10-13T13:09:54-05:00

Support for non-numerical patterns in FilePattern

Reported by: curtis Owned by: melissa
Priority: minor Milestone: bio-formats-4.2.1
Component: bio-formats Severity: non-issue
Keywords: Cc: e.mackay@…, GBonamy@…
Blocked By: Blocking:

Description

FilePattern currently supports only numerical blocks. It would be nice to be able to use other characters as well, and support discrete lists as well as ranges. Examples:

  • Platename_<A-H><01-12>.zvi
  • ColorImage<R,G,B>.tif

Change History

comment:1 Changed 2009-08-05T15:30:00-05:00 by melissa

  • Cc GBonamy@… added

comment:2 Changed 2009-08-05T17:03:49-05:00 by curtis

It has been suggested that the most useful general form of this non-numerical support would be use of regular expressions. And this would be fairly easy to implement in Java given the built-in regex support.

comment:3 Changed 2010-01-26T11:19:05-06:00 by melissa

  • Milestone changed from bio-formats-4.2 to bio-formats-5.0

comment:4 Changed 2010-08-27T17:38:52-05:00 by melissa

  • Owner changed from curtis to melissa
  • Milestone changed from bio-formats-5.0 to bio-formats-4.2.1

comment:5 Changed 2010-10-13T13:09:54-05:00 by melissa

  • Status changed from new to closed
  • Resolution set to fixed

(In [7070]) Added support for non-numerical file pattern blocks, closes #395.

You can now specify patterns such as:

  • "<A-M>.tiff"
  • "<A-M:2>.tiff" (which would give you A.tiff, C.diff, E.tiff, etc.)
  • "<R,G,B>.tiff"
  • "<1,5,13>.tiff"
  • ".*.tiff"