Tglow: Core Python component of the tglow imaging pipeline
tglow-core is the Python core component of the Tglow high-content imaging (HCI)
analysis pipeline. It provides utilities to index and read multi-well plate images
and parsers for PerkinElmer (Opera Phenix / Operetta) exports. The package is
used by the tglow-pipeline workflows to load, preprocess and write OME-TIFF
images arranged in the common /plate/row/col/field.ome.tiff (CYZX) layout.
Key features
- Read and write CYZX / ZYX / YX image arrays via
AICSImageReader/AICSImageWriter(wrappers aroundbioio) - Parse Revity/PerkinElmer
Index.xmlexports (PerkinElmerParser) and convert to a simple, Python-friendly index - Convert large Revity/PerkinElmer exports to a much lower number of
/plate/row/col/field.ome.tifffiles - Index and query plate/row/col/field image layouts using an
ImageQueryobject - Utilities for registration, flatfield correction and numeric conversions designed to work with
tglow-pipeline - Render a self-contained HTML QC report for a
tglow-pipelinerun (tglow.qc.render.build_report), covering general stats, registration, flatfield, deconvolution, intensity, scaling and debris tabs
Channel numbers are 0-indexed throughout this package, including in the ch<N>__ feature columns produced for tglow-pipeline and in the QC report.
Installation
I recommend installing the published PyPI release where possible:
To install the latest development version from the repository (editable install):
Basic usage
Build an index from a PerkinElmer export and read a single image:
Read and write an OME-TIFF stack organized by plate/row/col/field:
Acknowledgements
- Martin Prete: initial XML parsing code adapted for this project