labsyspharm / quantification

Quantification module for mcmicro
https://github.com/labsyspharm/mcmicro
9 stars 13 forks source link

Robust handling of filenames with dots (`.`) in them #35

Closed ArtemSokolov closed 2 years ago

ArtemSokolov commented 2 years ago

Previous version was defining the output filename to be the first token resulting from splitting the input image filename by dot ., which was creating issues for filenames that have periods in them. For example, processing the following files

11ah01522-1.8_slide0_ROI1.ome.tiff
11ah01522-1.8_slide0_ROI2.ome.tiff
11ah01522-1.8_slide0_ROI3.ome.tiff

would write the outputs for all three files to 11ah01522-1.csv.

The new version resolves this collision by purposefully removing the extension of the input image filename and properly accounting for the ome suffix, if it exists.