I need to group files using bioformats based on the pattern string in my code. It nicely works with the GUI, but I can not reproduce it in my plugin.
The code below groups files based on automatically identified pattern:
ImporterOptions options = new ImporterOptions();
But I need to specify pattern for grouped files myself like in GUI. So I expected to find
setPattern(pathRegExp) command, but there is no such method in
One solution, of course,would be recording command with macro recorder and then parsing regular expression string to the argument of
IJ.run(). But I am hoping to find more proper solution.
Thanks in advance!