omero.util.populate_metadata module¶
Populate bulk metadata tables from delimited text files.
- class util.populate_metadata.BulkToMapAnnotationContext(client, target_object, file=None, fileid=None, cfg=None, cfgid=None, attach=False, options=None)[source]¶
Bases:
_QueryContext
Processor for creating MapAnnotations from BulkAnnotations.
- class util.populate_metadata.DatasetWrapper(value_resolver)[source]¶
Bases:
PDIWrapper
- class util.populate_metadata.DeleteMapAnnotationContext(client, target_object, file=None, fileid=None, cfg=None, cfgid=None, attach=False, options=None)[source]¶
Bases:
_QueryContext
Processor for deleting MapAnnotations in the BulkAnnotations namespace on these types: Image WellSample Well PlateAcquisition Plate Screen
- class util.populate_metadata.HeaderResolver(target_object, headers, column_types=None)[source]¶
Bases:
object
Header resolver for known header names which is responsible for creating the column set for the OMERO.tables instance.
- DEFAULT_COLUMN_SIZE = 1¶
- dataset_keys = {'image': omero.grid.ImageColumn, 'image_name': omero.grid.StringColumn}¶
- plate_keys = {'column': omero.grid.LongColumn, 'field': omero.grid.ImageColumn, 'image': omero.grid.ImageColumn, 'row': omero.grid.LongColumn, 'well': omero.grid.WellColumn, 'wellsample': omero.grid.ImageColumn}¶
- project_keys = {'dataset': omero.grid.DatasetColumn, 'dataset_name': omero.grid.StringColumn, 'image': omero.grid.ImageColumn, 'image_name': omero.grid.StringColumn}¶
- screen_keys = {'column': omero.grid.LongColumn, 'field': omero.grid.ImageColumn, 'image': omero.grid.ImageColumn, 'plate': omero.grid.PlateColumn, 'row': omero.grid.LongColumn, 'well': omero.grid.WellColumn, 'wellsample': omero.grid.ImageColumn}¶
- class util.populate_metadata.ImageData(image)[source]¶
Bases:
object
Largely “mock” object which is intended to simulate the data returned by querying a Image but without the overhead of storing all the Ice fields.
- exception util.populate_metadata.MetadataError[source]¶
Bases:
Exception
Raised by the metadata parsing context when an error condition is reached.
- class util.populate_metadata.PDIWrapper(value_resolver)[source]¶
Bases:
ValueWrapper
- class util.populate_metadata.ParsingContext(client, target_object, file=None, fileid=None, cfg=None, cfgid=None, attach=False, column_types=None, options=None)[source]¶
Bases:
object
Generic parsing context for CSV files.
- class util.populate_metadata.PlateData(plate)[source]¶
Bases:
object
Largely “mock” object which is intended to simulate the data returned by querying a Plate but without the overhead of storing all the Ice fields.
- class util.populate_metadata.PlateWrapper(value_resolver)[source]¶
Bases:
SPWWrapper
- class util.populate_metadata.ProjectWrapper(value_resolver)[source]¶
Bases:
PDIWrapper
- class util.populate_metadata.SPWWrapper(value_resolver)[source]¶
Bases:
ValueWrapper
- class util.populate_metadata.ScreenWrapper(value_resolver)[source]¶
Bases:
SPWWrapper
- class util.populate_metadata.ValueResolver(client, target_object)[source]¶
Bases:
object
Value resolver for column types which is responsible for filling up non-metadata columns with their OMERO data model identifiers.
- AS_ALPHA = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'aa', 'ab', 'ac', 'ad', 'ae', 'af', 'ag', 'ah', 'ai', 'aj', 'ak', 'al', 'am', 'an', 'ao', 'ap', 'aq', 'ar', 'as', 'at', 'au', 'av', 'aw', 'ax', 'ay', 'az']¶
- WELL_REGEX = re.compile('^([a-zA-Z]+)(\\d+)$')¶
- v = 122¶
- class util.populate_metadata.WellData(well)[source]¶
Bases:
object
Largely “mock” object which is intended to simulate the data returned by querying a Well but without the overhead of storing all the Ice fields.