Image Table¶
Summary¶
The image table is a metadata table that tells PyFLASH where image files are,
which subject and marker they belong to, and how to arrange ROI panels. It is
stored on processed objects as .images. A nested lookup dictionary,
.imagesDict, is rebuilt from the same table for quick subject/marker/ROI path
lookup.
The table stores paths and labels, not the image pixels needed for long-term serialization.
Where It Appears¶
Experiment.imagesafterExperiment.importImages()orExperiment.processData(import_images=True).Batch.imagesafterBatch.importImages()orBatch.processData(import_images=True).Experiment.getImageTable(include_summary=True)andBatch.getImageTable(include_summary=True).- UI image helpers and image plot functions.
Required Fields¶
The base image table fields are:
| Field | Meaning |
|---|---|
AnimalName |
Subject/sample folder name. |
Marker |
Marker parsed from the image filename. |
ROI |
ROI part parsed from the image filename. This can be blank when the filename has no ROI suffix. |
ImageName |
Image file stem without extension. |
ImagePath |
Local path to the image file. |
Extension |
Lowercase file extension such as .png, .tif, or .jpg. |
Batch image tables also include:
| Field | Meaning |
|---|---|
Experiment |
Source experiment name before batch concatenation. |
Optional Fields¶
When include_summary=True, PyFLASH attaches summary metadata by AnimalName:
| Field | Meaning |
|---|---|
Condition |
Group label from the summary table. |
| Factor columns | Columns such as Diagnosis, Sex, or Time from the group list. |
Other image-related tables can include representative_images, a user-managed
selection table for representative panels. That table is separate from .images
but usually shares fields such as AnimalName, Marker, and ImageName.
Example¶
| Experiment | AnimalName | Condition | Marker | ROI | ImageName | ImagePath | Extension |
|---|---|---|---|---|---|---|---|
| Exp_01 | Mouse_01 | Control | GFAP | LHSCN | GFAP_LHSCN | /path/to/images/Mouse_01/GFAP_LHSCN.png | .png |
| Exp_01 | Mouse_01 | Control | DAPI | LHSCN | DAPI_LHSCN | /path/to/images/Mouse_01/DAPI_LHSCN.png | .png |
Nested lookup form:
Produced By¶
Experiment.importImages(), which scans image folders under the experiment root.Batch.importImages(), which concatenates experiment image tables and addsExperiment.getImageTable(include_summary=True), which can refresh summary metadata.- UI helper functions that expose the object image table without importing Streamlit.
Consumed By¶
plot_images.plot_representative_images.- Representative image selection helpers in the UI service layer.
- Image-related workflow and troubleshooting pages.
Notes¶
import_images=Falseleaves.imagesasNoneon processed objects and.imagesDictempty.getImageTable(include_summary=False)returns only the base image metadata columns that exist on the table.- Image files are found by scanning known image folders. For current ImageJ-style exports, PyFLASH looks under
Results/Presentation Images/Imagesand related analysis-image folders. - Image table sorting uses experiment, group, subject, ROI drawing order, marker, and image name when those fields are available.
- Pickle serialization removes any
ImageArraycolumn if it exists, so rely onImagePathfor durable references.