Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BioTek: refine field and channel name regexes #158

Merged
merged 2 commits into from
Sep 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public class BioTekReader extends FormatReader {
private static final Logger LOGGER =
LoggerFactory.getLogger(BioTekReader.class);
private static final String BIOTEK_MAGIC = "BTIImageMetaData";
private static final String WELL_REGEX = "([A-Z]{1,2})(\\d{1,2})_(\\d+)";
private static final String ALPHANUM = "([A-Za-z0-9 ]+)";
private static final String WELL_REGEX = "([A-Z]{1,2})(\\d{1,2})_(-?\\d+)";
private static final String ALPHANUM = "([A-Za-z0-9 ,\\[\\]]+)";
private static final String SUFFIX = ".tif[f]?";
private static final String TIFF_REGEX_A =
WELL_REGEX + "_(\\d+)_(\\d+)_" + ALPHANUM + "_(\\d+)" + SUFFIX;
Expand Down