External checkpoints
1. Core requirement: alignment
Section titled “1. Core requirement: alignment”When you call load_results(), PhenoMe needs to match each row in your
HDF5 file to the image files currently on disk. There are two ways.
Option A: ID-based (recommended)
Section titled “Option A: ID-based (recommended)”You provide a unique identifier per image.
- In HDF5: include
/metadata/id(one unique string per row). - In code: call
pipeline.find_files(image_dir)first. - Matching: the pipeline matches HDF5 IDs to the IDs generated by
find_files. By defaultfind_filesuses the filename stem (for examplecell_01forcell_01.png).
Option B: path-based
Section titled “Option B: path-based”You provide the literal file path.
- In HDF5: store absolute paths in
/img_path, or relative paths plus_storage_rootroot attribute. - In code: call
pipeline.set_file_df(df)with a DataFrame that has afile_pathcolumn. - Matching: the pipeline matches rows where the path strings are identical.
2. HDF5 file schema
Section titled “2. HDF5 file schema”Attributes are metadata attached to the root / of the file.
