Skip to content

integration of more relevant metadata in read_metadata parse_metadata=True #124

@machth

Description

@machth

Description of feature

Feature integration in read_metadata(img_path, image_type="czi", parse_metadata=True)

  1. extract scene information from czi file. (e.g. 'scene': [0,1,2,3] or 'scene': (0, 4))
  2. extract exposure time and intensity (e.g. 'exposure time': [50, 100, ...] (in ms); 'intensity': [50,100,100, ...] (in %))

Optional:
3. If possible also extract dimensions of czi or each scene.
4. Extract dye information for better knowledge -> 'Fluor' in metadata

Example for 3.:
'dimensions': [{'X': (0, 2236), 'Y': (0, 2236), 'Z': (0, 1), 'C': (0, 6), 'M': (0, 42), 'S': (0, 1), 'H': (0, 1)}]
'shape_info': HSCZMYX
or
'shape_info': HSCZMYX
'shape': (1, 1, 6, 1, 42, 2236, 2236)

Example for 4.:
'dye': ['TL Brightfield', 'Alexa Fluor 633', 'Alexa Fluor 555', 'Alexa Fluor 488', 'DAPI', 'Cy7']

e.g. metadata (extracted information in bold)
'Dimensions': {'Channels': {'Channel': [
{'@id': 'Channel:1',
'@name': 'AF633',
'ExcitationWavelength': '631',
'EmissionWavelength': '647',
'DyeId': 'McNamara-Boswell-0055',
'DyeDatabaseId': '66071726-cbd4-4c41-b371-0a6eee4ae9c5',
'Color': '#FFFF00FF',
'Fluor': 'Alexa Fluor 633',
'ExposureTime': '700000000',
'IlluminationType': 'Epifluorescence',
'ContrastMethod': 'Fluorescence',
'PixelType': 'Gray16',
'ComponentBitCount': '16',
'AcquisitionMode': 'WideField',
'IlluminationWavelength': {'SinglePeak': '630', 'Ranges': '615-648'},
'DetectorSettings': {'Binning': '1,1',
'HasFocusRoi': 'true',
'Detector': {'@id': 'Detector:Hamamatsu Orca Flash'}},
'LightSourcesSettings': {'LightSourceSettings': {'Intensity': '100.00 %',
'LightSource': {'@id': 'LightSource:2'}}},
'FilterSetRef': {'@id': 'FilterSet:2'}},

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions