References
convert(input_filename, output_folder, alt_output_folder=None, output_format='omezarr2', show_progress=False, verbose=False, max_attempts=RETRY_ATTEMPTS, **kwargs)
Source code in converter.py
33 34 35 36 37 38 39 40 41 42 43 44 45 | |
init_logging(log_filename, verbose=False)
Initialize logging to file and optionally to console.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
log_filename
|
str
|
Path to the log file. |
required |
verbose
|
bool
|
If True, also log to console. |
False
|
Source code in converter.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
DbReader
DbReader
Reads and queries a SQLite database, returning results as dictionaries.
Source code in src/DbReader.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
conn = sqlite3.connect(db_file)
instance-attribute
__init__(db_file)
Initialize DBReader with a database file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
db_file
|
str
|
Path to the SQLite database file. |
required |
Source code in src/DbReader.py
9 10 11 12 13 14 15 16 17 | |
close()
Closes the database connection.
Source code in src/DbReader.py
57 58 59 60 61 | |
dict_factory(cursor, row)
staticmethod
Converts a database row to a dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cursor
|
SQLite cursor object. |
required | |
row
|
Row data. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Mapping column names to values. |
Source code in src/DbReader.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | |
fetch_all(query, params=[], return_dicts=True)
Executes a query and fetches all results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
SQL query string. |
required |
params
|
list
|
Query parameters. |
[]
|
return_dicts
|
bool
|
If True, returns list of dicts; else, returns first column values. |
True
|
Returns:
| Name | Type | Description |
|---|---|---|
list |
Query results. |
Source code in src/DbReader.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
ISyntaxSource
PYRAMID_DOWNSCALE = 2
module-attribute
PYRAMID_LEVELS = 6
module-attribute
RETRY_ATTEMPTS = 3
module-attribute
TIFF_COMPRESSION = 'LZW'
module-attribute
TILE_SIZE = 1024
module-attribute
VERSION = 'v0.1.10'
module-attribute
ZARR_CHUNK_SIZE = TILE_SIZE
module-attribute
ZARR_SHARD_MULTIPLIER = 10
module-attribute
ISyntaxSource
Bases: ImageSource
Loads image and metadata from ISyntax format files.
Source code in src/ISyntaxSource.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | |
close()
Source code in src/ISyntaxSource.py
213 214 215 | |
get_acquisitions()
Source code in src/ISyntaxSource.py
204 205 | |
get_channels()
Source code in src/ISyntaxSource.py
174 175 176 177 178 179 180 181 | |
get_columns()
Source code in src/ISyntaxSource.py
192 193 | |
get_data(dim_order, level=0, well_id=None, field_id=None, **kwargs)
Source code in src/ISyntaxSource.py
95 96 97 | |
get_data_as_dask(dim_order, level=0, **kwargs)
Source code in src/ISyntaxSource.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |
get_data_as_generator(dim_order, **kwargs)
Source code in src/ISyntaxSource.py
116 117 118 119 120 121 122 123 124 125 126 127 | |
get_dim_order()
Returns the dimension order string.
Returns:
| Name | Type | Description |
|---|---|---|
str |
Dimension order. |
Source code in src/ISyntaxSource.py
138 139 140 141 142 143 144 145 | |
get_dtype()
Returns the numpy dtype of the image data.
Returns:
| Name | Type | Description |
|---|---|---|
dtype |
Numpy dtype. |
Source code in src/ISyntaxSource.py
156 157 158 159 160 161 162 163 | |
get_fields()
Source code in src/ISyntaxSource.py
201 202 | |
get_name()
Gets the file title.
Returns:
| Name | Type | Description |
|---|---|---|
str |
Name. |
Source code in src/ISyntaxSource.py
129 130 131 132 133 134 135 136 | |
get_nchannels()
Source code in src/ISyntaxSource.py
183 184 | |
get_pixel_size_um()
Returns the pixel size in micrometers.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Pixel size dict for x and y. |
Source code in src/ISyntaxSource.py
147 148 149 150 151 152 153 154 | |
get_position_um(well_id=None)
Returns the position in micrometers (empty for ISyntax).
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Position dict for x and y. |
Source code in src/ISyntaxSource.py
165 166 167 168 169 170 171 172 | |
get_rows()
Source code in src/ISyntaxSource.py
189 190 | |
get_scales()
Source code in src/ISyntaxSource.py
86 87 | |
get_shape()
Source code in src/ISyntaxSource.py
80 81 | |
get_shapes()
Source code in src/ISyntaxSource.py
83 84 | |
get_time_points()
Source code in src/ISyntaxSource.py
198 199 | |
get_total_data_size()
Source code in src/ISyntaxSource.py
207 208 209 210 211 | |
get_wells()
Source code in src/ISyntaxSource.py
195 196 | |
init_metadata()
Source code in src/ISyntaxSource.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
is_rgb()
Source code in src/ISyntaxSource.py
186 187 | |
is_screen()
Source code in src/ISyntaxSource.py
77 78 | |
read_array(x, y, width, height, level=0)
Source code in src/ISyntaxSource.py
89 90 91 92 93 | |
ImageDbSource
ImageDbSource
Bases: ImageSource
Loads image and metadata from a database source for high-content screening.
Source code in src/ImageDbSource.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 | |
data = None
instance-attribute
data_level = None
instance-attribute
data_well_id = None
instance-attribute
db = DbReader(self.uri)
instance-attribute
dim_order = 'tczyx'
instance-attribute
__init__(uri, metadata={})
Source code in src/ImageDbSource.py
17 18 19 20 21 22 23 | |
close()
Closes the database connection.
Source code in src/ImageDbSource.py
364 365 366 367 368 | |
get_acquisitions()
Source code in src/ImageDbSource.py
326 327 328 329 330 331 332 333 334 335 336 | |
get_channels()
Source code in src/ImageDbSource.py
309 310 311 312 313 314 315 316 317 318 | |
get_columns()
Source code in src/ImageDbSource.py
282 283 | |
get_data(dim_order, level=0, well_id=None, field_id=None, **kwargs)
Source code in src/ImageDbSource.py
266 267 268 269 270 271 | |
get_dim_order()
Source code in src/ImageDbSource.py
294 295 | |
get_dtype()
Source code in src/ImageDbSource.py
297 298 | |
get_fields()
Source code in src/ImageDbSource.py
291 292 | |
get_name()
Source code in src/ImageDbSource.py
273 274 275 276 277 | |
get_nchannels()
Source code in src/ImageDbSource.py
320 321 | |
get_pixel_size_um()
Source code in src/ImageDbSource.py
300 301 | |
get_position_um(well_id=None, level=0)
Source code in src/ImageDbSource.py
303 304 305 306 307 | |
get_rows()
Source code in src/ImageDbSource.py
279 280 | |
get_scales()
Source code in src/ImageDbSource.py
39 40 | |
get_shape()
Source code in src/ImageDbSource.py
33 34 | |
get_shapes()
Source code in src/ImageDbSource.py
36 37 | |
get_time_points()
Source code in src/ImageDbSource.py
288 289 | |
get_total_data_size()
Source code in src/ImageDbSource.py
338 339 | |
get_wells()
Source code in src/ImageDbSource.py
285 286 | |
init_metadata()
Source code in src/ImageDbSource.py
25 26 27 28 29 30 31 | |
is_rgb()
Source code in src/ImageDbSource.py
323 324 | |
is_screen()
Source code in src/ImageDbSource.py
263 264 | |
print_timepoint_well_matrix()
Source code in src/ImageDbSource.py
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | |
convert_dotnet_ticks_to_datetime(net_ticks)
Source code in src/util.py
137 138 | |
convert_to_um(value, unit)
Source code in src/util.py
184 185 186 187 188 189 190 191 192 | |
ensure_list(item)
Source code in src/util.py
7 8 9 10 | |
get_filetitle(filename)
Source code in src/util.py
68 69 | |
get_level_from_scale(source_scales, target_scale=1)
Source code in src/util.py
54 55 56 57 58 59 60 61 | |
get_numpy_data(data, dim_order, t, c, z, y, x, y_size, x_size)
Source code in src/util.py
39 40 41 42 43 44 45 46 47 48 49 50 51 | |
get_rows_cols_plate(nwells)
Source code in src/util.py
122 123 124 125 126 127 128 129 130 131 132 133 134 | |
pad_leading_zero(input_string, num_digits=2)
Source code in src/util.py
104 105 106 107 108 109 110 111 112 113 114 | |
print_dict(value, tab=0, max_len=250, bullet=False)
Source code in src/util.py
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | |
print_hbytes(nbytes)
Source code in src/util.py
219 220 221 222 223 224 225 226 227 228 229 230 | |
redimension_data(data, old_order, new_order, **indices)
Source code in src/util.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
split_well_name(well_name, remove_leading_zeros=True, col_as_int=False)
Source code in src/util.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
splitall(path)
Source code in src/util.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
strip_leading_zeros(well_name)
Source code in src/util.py
117 118 119 | |
validate_filename(filename)
Source code in src/util.py
64 65 | |
xml_content_to_dict(element)
Source code in src/util.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | |
ImageSource
ImageSource
Bases: ABC
Abstract base class for image sources.
Source code in src/ImageSource.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | |
metadata = metadata
instance-attribute
uri = uri
instance-attribute
__init__(uri, metadata={})
Initialize ImageSource.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uri
|
str
|
Path to the image source. |
required |
metadata
|
dict
|
Optional metadata dictionary. |
{}
|
Source code in src/ImageSource.py
12 13 14 15 16 17 18 19 20 21 | |
close()
Close the image source.
Source code in src/ImageSource.py
259 260 261 262 263 | |
get_acquisitions()
Get acquisition metadata.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
241 242 243 244 245 246 247 248 | |
get_channels()
Get channel metadata in NGFF format, color provided as RGBA list with values between 0 and 1 e.g. white = [1, 1, 1, 1]
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
171 172 173 174 175 176 177 178 179 | |
get_columns()
Get the list of column identifiers.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
205 206 207 208 209 210 211 212 | |
get_data(dim_order, level=0, well_id=None, field_id=None, **kwargs)
Get image data for a well and field.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dim_order
|
Dimension order of data |
required | |
level
|
int
|
Image resolution level |
0
|
well_id
|
str
|
Well identifier |
None
|
field_id
|
int
|
Field identifier |
None
|
kwargs
|
optional
|
Format specific keyword arguments. |
{}
|
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
get_data_as_dask(dim_order, level=0, **kwargs)
Get image data (WSI) as dask array.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dim_order
|
Dimension order of data |
required | |
level
|
int
|
Image resolution level |
0
|
kwargs
|
optional
|
Format specific keyword arguments. |
{}
|
Source code in src/ImageSource.py
84 85 86 87 88 89 90 91 92 93 | |
get_data_as_generator(dim_order, **kwargs)
Get image data (WSI) as generator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dim_order
|
Dimension order of data |
required | |
kwargs
|
optional
|
Format specific keyword arguments. |
{}
|
Source code in src/ImageSource.py
95 96 97 98 99 100 101 102 103 | |
get_dim_order()
Get the dimension order string.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
135 136 137 138 139 140 141 142 | |
get_dtype()
Get the numpy dtype of the image data.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
144 145 146 147 148 149 150 151 | |
get_fields()
Get the list of field indices.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
232 233 234 235 236 237 238 239 | |
get_image_window(window_scanner, well_id=None, field_id=None, data=None)
Get image value range window (for a well & field or from provided data).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window_scanner
|
WindowScanner
|
WindowScanner object to compute window. |
required |
well_id
|
str
|
Well identifier |
None
|
field_id
|
int
|
Field identifier |
None
|
data
|
ndarray
|
Image data to compute window from. |
None
|
Source code in src/ImageSource.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | |
get_name()
Get the name of the image source.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
126 127 128 129 130 131 132 133 | |
get_nchannels()
Get the number of channels.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
181 182 183 184 185 186 187 188 | |
get_pixel_size_um()
Get the pixel size in micrometers.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
153 154 155 156 157 158 159 160 | |
get_position_um(well_id=None)
Get the position in micrometers for a well.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
162 163 164 165 166 167 168 169 | |
get_rows()
Get the list of row identifiers.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
196 197 198 199 200 201 202 203 | |
get_scales()
Get the list of image scales.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
59 60 61 62 63 64 65 66 | |
get_shape()
Get the shape of the image data.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
41 42 43 44 45 46 47 48 | |
get_shapes()
Get a list of shapes corresponding to the image data levels.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
50 51 52 53 54 55 56 57 | |
get_time_points()
Get the list of time points.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
223 224 225 226 227 228 229 230 | |
get_total_data_size()
Get the estimated total data size.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
250 251 252 253 254 255 256 257 | |
get_wells()
Get the list of well identifiers.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
214 215 216 217 218 219 220 221 | |
init_metadata()
Initialize and load metadata.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
23 24 25 26 27 28 29 30 | |
is_rgb()
Check if the source is a RGB(A) image.
Source code in src/ImageSource.py
190 191 192 193 194 | |
is_screen()
Check if the source is a screen (multi-well).
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src/ImageSource.py
32 33 34 35 36 37 38 39 | |
print_well_matrix()
Print a matrix representation of the well plate.
Source code in src/ImageSource.py
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | |
IncucyteSource
IncucyteSource
Bases: ImageSource
ImageSource implementation for Incucyte data
Handles the specific directory structure: EssenFiles/ScanData/YYMM/DD/HHMM/XXXX/*.tif
Filenames follow pattern: WELL-FIELD-CHANNEL.tif e.g., A1-1-C1.tif, B2-1-Ph.tif
Note: Multiple plates can exist in the same archive, identified by the XXXX folder. Use plate_id parameter to select a specific plate, or use get_available_plates() to discover all plates in the archive.
Source code in src/IncucyteSource.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 | |
DIAG_LOG_FILENAME = 'Diag.log'
class-attribute
instance-attribute
DIAG_ZIP_FILENAME = 'Diag.zip'
class-attribute
instance-attribute
base_path = Path(self.uri)
instance-attribute
fill_missing_images = True
instance-attribute
plate_id = plate_id
instance-attribute
scan_data_path = self.base_path / 'EssenFiles' / 'ScanData'
instance-attribute
__init__(uri, metadata={}, plate_id=None)
Initialize IncucyteSource.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uri
|
str
|
Path to the Incucyte archive folder |
required |
metadata
|
dict
|
Optional metadata dictionary |
{}
|
plate_id
|
str
|
Specific plate ID to process (e.g., '700', '701'). If None, will use the first available plate or all if only one exists. |
None
|
Source code in src/IncucyteSource.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
close()
Clean up resources
Source code in src/IncucyteSource.py
796 797 798 | |
enable_file_caching(file_caching=True)
Enable or disable file caching for image data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_caching
|
bool
|
If True, enable file caching; if False, disable it. |
True
|
Source code in src/IncucyteSource.py
89 90 91 92 93 94 95 96 97 98 | |
get_acquisitions()
Return acquisition information based on timepoints
Source code in src/IncucyteSource.py
721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 | |
get_available_plates(uri)
staticmethod
Discover all available plate IDs in an Incucyte archive.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uri
|
str
|
Path to the Incucyte archive folder |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
List of plate IDs (strings) found in the archive |
Source code in src/IncucyteSource.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
get_channels()
Source code in src/IncucyteSource.py
696 697 | |
get_columns()
Source code in src/IncucyteSource.py
705 706 | |
get_data(dim_order, level=0, well_id=None, field_id=None, **kwargs)
Get data for a specific well and field
Source code in src/IncucyteSource.py
638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 | |
get_dim_order()
Source code in src/IncucyteSource.py
680 681 | |
get_dtype()
Source code in src/IncucyteSource.py
683 684 | |
get_fields()
Source code in src/IncucyteSource.py
714 715 | |
get_name()
Source code in src/IncucyteSource.py
677 678 | |
get_nchannels()
Source code in src/IncucyteSource.py
699 700 | |
get_pixel_size_um()
Source code in src/IncucyteSource.py
686 687 | |
get_position_um(well_id=None)
Source code in src/IncucyteSource.py
689 690 691 692 693 694 | |
get_rows()
Source code in src/IncucyteSource.py
702 703 | |
get_scales()
Source code in src/IncucyteSource.py
674 675 | |
get_shape()
Source code in src/IncucyteSource.py
671 672 | |
get_time_points()
Source code in src/IncucyteSource.py
711 712 | |
get_total_data_size()
Source code in src/IncucyteSource.py
739 740 | |
get_well_coords_um(well_id)
Get well coordinates (placeholder - Incucyte doesn't typically have stage coordinates)
Source code in src/IncucyteSource.py
717 718 719 | |
get_wells()
Source code in src/IncucyteSource.py
708 709 | |
init_metadata()
Initialize all metadata from Incucyte structure
Source code in src/IncucyteSource.py
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | |
is_rgb()
Check if the source is a RGB(A) image. Incucyte data stores channels separately, not as RGB.
Source code in src/IncucyteSource.py
789 790 791 792 793 794 | |
is_screen()
Source code in src/IncucyteSource.py
635 636 | |
print_timepoint_well_matrix()
Print timepoint vs well matrix
Source code in src/IncucyteSource.py
764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 | |
print_well_matrix()
Print a visual representation of the plate layout
Source code in src/IncucyteSource.py
742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 | |
MiraxSource
PYRAMID_DOWNSCALE = 2
module-attribute
PYRAMID_LEVELS = 6
module-attribute
RETRY_ATTEMPTS = 3
module-attribute
TIFF_COMPRESSION = 'LZW'
module-attribute
TILE_SIZE = 1024
module-attribute
VERSION = 'v0.1.10'
module-attribute
ZARR_CHUNK_SIZE = TILE_SIZE
module-attribute
ZARR_SHARD_MULTIPLIER = 10
module-attribute
MiraxSource
Bases: ImageSource
ImageSource subclass for reading Mirax files using OpenSlide.
Source code in src/MiraxSource.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |
slide = openslide.open_slide(uri)
instance-attribute
__init__(uri, metadata={})
Source code in src/MiraxSource.py
20 21 22 | |
close()
Source code in src/MiraxSource.py
167 168 | |
get_acquisitions()
Source code in src/MiraxSource.py
161 162 | |
get_channels()
Source code in src/MiraxSource.py
131 132 133 134 135 136 137 138 | |
get_columns()
Source code in src/MiraxSource.py
149 150 | |
get_data(dim_order, level=0, well_id=None, field_id=None, **kwargs)
Source code in src/MiraxSource.py
81 82 83 | |
get_data_as_dask(dim_order, level=0, **kwargs)
Source code in src/MiraxSource.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | |
get_data_as_generator(dim_order, **kwargs)
Source code in src/MiraxSource.py
102 103 104 105 106 107 108 109 110 111 112 113 | |
get_dim_order()
Source code in src/MiraxSource.py
118 119 | |
get_dtype()
Source code in src/MiraxSource.py
121 122 | |
get_fields()
Source code in src/MiraxSource.py
158 159 | |
get_name()
Source code in src/MiraxSource.py
115 116 | |
get_nchannels()
Source code in src/MiraxSource.py
140 141 | |
get_pixel_size_um()
Source code in src/MiraxSource.py
124 125 | |
get_position_um(well_id=None)
Source code in src/MiraxSource.py
127 128 129 | |
get_rows()
Source code in src/MiraxSource.py
146 147 | |
get_scales()
Source code in src/MiraxSource.py
65 66 | |
get_shape()
Source code in src/MiraxSource.py
59 60 | |
get_shapes()
Source code in src/MiraxSource.py
62 63 | |
get_time_points()
Source code in src/MiraxSource.py
155 156 | |
get_total_data_size()
Source code in src/MiraxSource.py
164 165 | |
get_wells()
Source code in src/MiraxSource.py
152 153 | |
init_metadata()
Source code in src/MiraxSource.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
is_rgb()
Source code in src/MiraxSource.py
143 144 | |
is_screen()
Source code in src/MiraxSource.py
55 56 57 | |
read_array(x, y, width, height, level=0)
Source code in src/MiraxSource.py
71 72 73 74 75 76 77 78 79 | |
OmeTiffWriter
PYRAMID_DOWNSCALE = 2
module-attribute
PYRAMID_LEVELS = 6
module-attribute
RETRY_ATTEMPTS = 3
module-attribute
TIFF_COMPRESSION = 'LZW'
module-attribute
TILE_SIZE = 1024
module-attribute
VERSION = 'v0.1.10'
module-attribute
ZARR_CHUNK_SIZE = TILE_SIZE
module-attribute
ZARR_SHARD_MULTIPLIER = 10
module-attribute
OmeTiffWriter
Bases: OmeWriter
Writes image data and metadata to OME-TIFF files.
Source code in src/OmeTiffWriter.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | |
verbose = verbose
instance-attribute
__init__(verbose=False)
Initialize OmeTiffWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
verbose
|
bool
|
If True, prints progress info. |
False
|
Source code in src/OmeTiffWriter.py
18 19 20 21 22 23 24 25 26 | |
write(filepath, source, **kwargs)
Writes image or screen data to OME-TIFF files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Output file path. |
required |
source
|
ImageSource
|
Source object. |
required |
**kwargs
|
Additional options (e.g. wells selection). |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Containing output_path: str or list Output file path(s) and data window. |
Source code in src/OmeTiffWriter.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
convert_dotnet_ticks_to_datetime(net_ticks)
Source code in src/util.py
137 138 | |
convert_to_um(value, unit)
Source code in src/util.py
184 185 186 187 188 189 190 191 192 | |
ensure_list(item)
Source code in src/util.py
7 8 9 10 | |
get_filetitle(filename)
Source code in src/util.py
68 69 | |
get_level_from_scale(source_scales, target_scale=1)
Source code in src/util.py
54 55 56 57 58 59 60 61 | |
get_numpy_data(data, dim_order, t, c, z, y, x, y_size, x_size)
Source code in src/util.py
39 40 41 42 43 44 45 46 47 48 49 50 51 | |
get_rows_cols_plate(nwells)
Source code in src/util.py
122 123 124 125 126 127 128 129 130 131 132 133 134 | |
pad_leading_zero(input_string, num_digits=2)
Source code in src/util.py
104 105 106 107 108 109 110 111 112 113 114 | |
print_dict(value, tab=0, max_len=250, bullet=False)
Source code in src/util.py
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | |
print_hbytes(nbytes)
Source code in src/util.py
219 220 221 222 223 224 225 226 227 228 229 230 | |
redimension_data(data, old_order, new_order, **indices)
Source code in src/util.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
split_well_name(well_name, remove_leading_zeros=True, col_as_int=False)
Source code in src/util.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
splitall(path)
Source code in src/util.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
strip_leading_zeros(well_name)
Source code in src/util.py
117 118 119 | |
validate_filename(filename)
Source code in src/util.py
64 65 | |
xml_content_to_dict(element)
Source code in src/util.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | |
OmeWriter
OmeWriter
Bases: ABC
Abstract base class for OME writers.
Source code in src/OmeWriter.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
write(filepath, source, verbose=False, **kwargs)
Write image data and metadata to output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Output file path. |
required |
source
|
ImageSource
|
Source object. |
required |
verbose
|
bool
|
If True, prints progress info. |
False
|
**kwargs
|
Additional options. |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
str
|
Containing output_path: str or list Output file path(s), and other optional output. |
Source code in src/OmeWriter.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
OmeZarrSource
OmeZarrSource
Bases: ImageSource
Source code in src/OmeZarrSource.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
get_acquisitions()
Source code in src/OmeZarrSource.py
178 179 | |
get_channels()
Source code in src/OmeZarrSource.py
146 147 148 149 150 151 152 153 154 | |
get_columns()
Source code in src/OmeZarrSource.py
165 166 | |
get_data(level=0, well_id=None, field_id=None, **kwargs)
Source code in src/OmeZarrSource.py
93 94 95 96 97 98 | |
get_data_as_generator(dim_order, **kwargs)
Source code in src/OmeZarrSource.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
get_dim_order()
Source code in src/OmeZarrSource.py
130 131 | |
get_dtype()
Source code in src/OmeZarrSource.py
133 134 | |
get_fields()
Source code in src/OmeZarrSource.py
175 176 | |
get_image_window(window_scanner, well_id=None, field_id=None, data=None)
Source code in src/OmeZarrSource.py
119 120 121 122 123 124 125 | |
get_name()
Source code in src/OmeZarrSource.py
127 128 | |
get_nchannels()
Source code in src/OmeZarrSource.py
156 157 | |
get_pixel_size_um()
Source code in src/OmeZarrSource.py
136 137 | |
get_position_um(well_id=None)
Source code in src/OmeZarrSource.py
139 140 141 142 143 144 | |
get_rows()
Source code in src/OmeZarrSource.py
162 163 | |
get_scales()
Source code in src/OmeZarrSource.py
90 91 | |
get_shape()
Source code in src/OmeZarrSource.py
84 85 | |
get_shapes()
Source code in src/OmeZarrSource.py
87 88 | |
get_time_points()
Source code in src/OmeZarrSource.py
171 172 173 | |
get_total_data_size()
Source code in src/OmeZarrSource.py
181 182 183 184 185 | |
get_wells()
Source code in src/OmeZarrSource.py
168 169 | |
init_metadata()
Source code in src/OmeZarrSource.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
is_rgb()
Source code in src/OmeZarrSource.py
159 160 | |
is_screen()
Source code in src/OmeZarrSource.py
81 82 | |
create_axes_metadata(dimension_order)
Create axes metadata for OME-Zarr from dimension order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dimension_order
|
str
|
String of dimension characters. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
List of axis metadata dictionaries. |
Source code in src/ome_zarr_util.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
create_channel_metadata(dtype, channels, nchannels, is_rgb, window, ome_version)
Create channel metadata for OME-Zarr.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dtype
|
Numpy dtype of image data. |
required | |
channels
|
list
|
List of channel dicts. |
required |
nchannels
|
int
|
Number of channels. |
required |
window
|
tuple
|
Min/max window values. |
required |
ome_version
|
str
|
OME-Zarr version. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Channel metadata dictionary. |
Source code in src/ome_zarr_util.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
create_transformation_metadata(dimension_order, pixel_size_um, scale, translation_um=None)
Create transformation metadata (scale and translation) for OME-Zarr.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dimension_order
|
str
|
String of dimension characters. |
required |
pixel_size_um
|
dict
|
Pixel size in micrometers per dimension. |
required |
scale
|
float
|
Scaling factor. |
required |
translation_um
|
dict
|
Translation in micrometers per dimension. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
list |
List of transformation metadata dictionaries. |
Source code in src/ome_zarr_util.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
rgba_to_hexrgb(rgba)
Source code in src/color_conversion.py
16 17 18 | |
scale_dimensions_dict(shape0, scale)
Scale x and y dimensions in a shape dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shape0
|
dict
|
Original shape dictionary. |
required |
scale
|
float
|
Scaling factor. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Scaled shape dictionary. |
Source code in src/ome_zarr_util.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
scale_dimensions_xy(shape0, dimension_order, scale)
Scale x and y dimensions in a shape tuple.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shape0
|
tuple
|
Original shape. |
required |
dimension_order
|
str
|
String of dimension characters. |
required |
scale
|
float
|
Scaling factor. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
Scaled shape. |
Source code in src/ome_zarr_util.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
OmeZarrWriter
PYRAMID_DOWNSCALE = 2
module-attribute
PYRAMID_LEVELS = 6
module-attribute
RETRY_ATTEMPTS = 3
module-attribute
TIFF_COMPRESSION = 'LZW'
module-attribute
TILE_SIZE = 1024
module-attribute
VERSION = 'v0.1.10'
module-attribute
ZARR_CHUNK_SIZE = TILE_SIZE
module-attribute
ZARR_SHARD_MULTIPLIER = 10
module-attribute
OmeZarrWriter
Bases: OmeWriter
Writer for exporting image or screen data to OME-Zarr format. Supports both single images and high-content screening (HCS) plates.
Source code in src/OmeZarrWriter.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |
dim_order = 'tczyx'
instance-attribute
ome_format = FormatV04()
instance-attribute
ome_version = ome_version
instance-attribute
verbose = verbose
instance-attribute
zarr_version = zarr_version
instance-attribute
__init__(zarr_version=2, ome_version='0.4', verbose=False)
Initialize the OmeZarrWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
zarr_version
|
int
|
Zarr format version (2 or 3). |
2
|
ome_version
|
str
|
OME-Zarr metadata version ('0.4' or '0.5'). |
'0.4'
|
verbose
|
bool
|
If True, print additional information. |
False
|
Source code in src/OmeZarrWriter.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
write(filepath, source, **kwargs)
Write the provided source data to an OME-Zarr file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Output path for the Zarr file. |
required |
source
|
source reader supporting required interface. |
required | |
**kwargs
|
Additional arguments (e.g. wells selection). |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Containing output_path: str Output file path. |
Source code in src/OmeZarrWriter.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
create_axes_metadata(dimension_order)
Create axes metadata for OME-Zarr from dimension order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dimension_order
|
str
|
String of dimension characters. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
List of axis metadata dictionaries. |
Source code in src/ome_zarr_util.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
create_channel_metadata(dtype, channels, nchannels, is_rgb, window, ome_version)
Create channel metadata for OME-Zarr.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dtype
|
Numpy dtype of image data. |
required | |
channels
|
list
|
List of channel dicts. |
required |
nchannels
|
int
|
Number of channels. |
required |
window
|
tuple
|
Min/max window values. |
required |
ome_version
|
str
|
OME-Zarr version. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Channel metadata dictionary. |
Source code in src/ome_zarr_util.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
create_transformation_metadata(dimension_order, pixel_size_um, scale, translation_um=None)
Create transformation metadata (scale and translation) for OME-Zarr.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dimension_order
|
str
|
String of dimension characters. |
required |
pixel_size_um
|
dict
|
Pixel size in micrometers per dimension. |
required |
scale
|
float
|
Scaling factor. |
required |
translation_um
|
dict
|
Translation in micrometers per dimension. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
list |
List of transformation metadata dictionaries. |
Source code in src/ome_zarr_util.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
rgba_to_hexrgb(rgba)
Source code in src/color_conversion.py
16 17 18 | |
scale_dimensions_dict(shape0, scale)
Scale x and y dimensions in a shape dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shape0
|
dict
|
Original shape dictionary. |
required |
scale
|
float
|
Scaling factor. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Scaled shape dictionary. |
Source code in src/ome_zarr_util.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
scale_dimensions_xy(shape0, dimension_order, scale)
Scale x and y dimensions in a shape tuple.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shape0
|
tuple
|
Original shape. |
required |
dimension_order
|
str
|
String of dimension characters. |
required |
scale
|
float
|
Scaling factor. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
Scaled shape. |
Source code in src/ome_zarr_util.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
TiffSource
TiffSource
Bases: ImageSource
Loads image and metadata from TIFF or OME-TIFF files.
Source code in src/TiffSource.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | |
image_filenames = {}
instance-attribute
metadata = metadata_to_dict(file.read().decode())
instance-attribute
tiff = TiffFile(image_filename)
instance-attribute
__init__(uri, metadata={})
Initialize TiffSource.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uri
|
str
|
Path to the TIFF file. |
required |
metadata
|
dict
|
Optional metadata dictionary. |
{}
|
Source code in src/TiffSource.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
close()
Closes the TIFF file.
Source code in src/TiffSource.py
344 345 346 347 348 | |
get_acquisitions()
Returns acquisition metadata (empty for TIFF).
Returns:
| Name | Type | Description |
|---|---|---|
list |
Empty list. |
Source code in src/TiffSource.py
323 324 325 326 327 328 329 330 | |
get_channels()
Returns channel metadata.
Returns:
| Name | Type | Description |
|---|---|---|
list |
List of channel dicts. |
Source code in src/TiffSource.py
250 251 252 253 254 255 256 257 | |
get_columns()
Returns the list of column identifiers.
Returns:
| Name | Type | Description |
|---|---|---|
list |
Column identifiers. |
Source code in src/TiffSource.py
283 284 285 286 287 288 289 290 | |
get_data(dim_order, level=0, well_id=None, field_id=None, **kwargs)
Source code in src/TiffSource.py
185 186 187 188 189 190 191 192 | |
get_data_as_dask(dim_order, level=0, **kwargs)
Source code in src/TiffSource.py
194 195 196 197 198 199 200 | |
get_dim_order()
Returns the dimension order string.
Returns:
| Name | Type | Description |
|---|---|---|
str |
Dimension order. |
Source code in src/TiffSource.py
211 212 213 214 215 216 217 218 | |
get_dtype()
Returns the numpy dtype of the image data.
Returns:
| Name | Type | Description |
|---|---|---|
dtype |
Numpy dtype. |
Source code in src/TiffSource.py
220 221 222 223 224 225 226 227 | |
get_fields()
Returns the list of field indices.
Returns:
| Name | Type | Description |
|---|---|---|
list |
Field indices. |
Source code in src/TiffSource.py
314 315 316 317 318 319 320 321 | |
get_name()
Gets the image or plate name.
Returns:
| Name | Type | Description |
|---|---|---|
str |
Name. |
Source code in src/TiffSource.py
202 203 204 205 206 207 208 209 | |
get_nchannels()
Returns the number of channels.
Returns:
| Name | Type | Description |
|---|---|---|
int |
Number of channels. |
Source code in src/TiffSource.py
259 260 261 262 263 264 265 266 | |
get_pixel_size_um()
Returns the pixel size in micrometers.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Pixel size for x, y, (and z). |
Source code in src/TiffSource.py
229 230 231 232 233 234 235 236 237 238 239 | |
get_position_um(well_id=None)
Returns the position in micrometers.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Position in micrometers. |
Source code in src/TiffSource.py
241 242 243 244 245 246 247 248 | |
get_rows()
Returns the list of row identifiers.
Returns:
| Name | Type | Description |
|---|---|---|
list |
Row identifiers. |
Source code in src/TiffSource.py
274 275 276 277 278 279 280 281 | |
get_scales()
Source code in src/TiffSource.py
182 183 | |
get_shape()
Source code in src/TiffSource.py
176 177 | |
get_shapes()
Source code in src/TiffSource.py
179 180 | |
get_time_points()
Returns the list of time points.
Returns:
| Name | Type | Description |
|---|---|---|
list |
Time point IDs. |
Source code in src/TiffSource.py
301 302 303 304 305 306 307 308 309 310 311 312 | |
get_total_data_size()
Returns the estimated total data size.
Returns:
| Name | Type | Description |
|---|---|---|
int |
Total data size in bytes. |
Source code in src/TiffSource.py
332 333 334 335 336 337 338 339 340 341 342 | |
get_wells()
Returns the list of well identifiers.
Returns:
| Name | Type | Description |
|---|---|---|
list |
Well identifiers. |
Source code in src/TiffSource.py
292 293 294 295 296 297 298 299 | |
init_metadata()
Initializes and loads metadata from the (OME) TIFF file.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Metadata dictionary. |
Source code in src/TiffSource.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | |
is_rgb()
Check if the source is a RGB(A) image.
Source code in src/TiffSource.py
268 269 270 271 272 | |
is_screen()
Source code in src/TiffSource.py
173 174 | |
convert_rational_value(value)
Converts a rational value tuple to a float.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
tuple or None
|
Rational value. |
required |
Returns:
| Type | Description |
|---|---|
|
float or None: Converted value. |
Source code in src/TiffSource.py
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 | |
tags_to_dict(tags)
Converts TIFF tags to a dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tags
|
TIFF tags object. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Tag name-value mapping. |
Source code in src/TiffSource.py
351 352 353 354 355 356 357 358 359 360 361 362 363 364 | |
Timer
Timer
Bases: object
Context manager for timing code execution and logging the elapsed time.
Source code in src/Timer.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
auto_unit = auto_unit
instance-attribute
title = title
instance-attribute
verbose = verbose
instance-attribute
__enter__()
Start timing.
Source code in src/Timer.py
25 26 27 28 29 30 | |
__exit__(type, value, traceback)
Stop timing and log the elapsed time.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
type
|
Exception type, if any. |
required | |
value
|
Exception value, if any. |
required | |
traceback
|
Exception traceback, if any. |
required |
Source code in src/Timer.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
__init__(title, auto_unit=True, verbose=True)
Initialize the Timer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
Description for the timed block. |
required |
auto_unit
|
bool
|
Automatically select time unit (seconds/minutes/hours). |
True
|
verbose
|
bool
|
If True, log the elapsed time. |
True
|
Source code in src/Timer.py
12 13 14 15 16 17 18 19 20 21 22 23 | |
WindowScanner
WindowScanner
Computes quantile-based min/max window for image channels.
Source code in src/WindowScanner.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
maxs = []
instance-attribute
mins = []
instance-attribute
__init__()
Initialize WindowScanner.
Source code in src/WindowScanner.py
9 10 11 12 13 14 | |
get_window()
Returns the computed min/max window for channels.
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
(min dict, max dict) |
Source code in src/WindowScanner.py
41 42 43 44 45 46 47 48 | |
process(data, dim_order, min_quantile=0.01, max_quantile=0.99)
Processes image data to compute min/max quantiles for each channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
ndarray
|
Image data. |
required |
dim_order
|
str
|
Dimension order string. |
required |
min_quantile
|
float
|
Lower quantile. |
0.01
|
max_quantile
|
float
|
Upper quantile. |
0.99
|
Source code in src/WindowScanner.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
color_conversion
hexrgb_to_rgba(hexrgb)
Source code in src/color_conversion.py
21 22 23 24 25 26 | |
int_to_rgba(intrgba)
Source code in src/color_conversion.py
3 4 5 6 7 8 | |
rgba_to_hexrgb(rgba)
Source code in src/color_conversion.py
16 17 18 | |
rgba_to_int(rgba)
Source code in src/color_conversion.py
11 12 13 | |
helper
create_incucyte_source(filename, plate_id=None)
Create an IncucyteSource object for a specific plate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
Path to the Incucyte archive folder or .icarch file. |
required |
plate_id
|
str
|
Specific plate ID to process. If None, uses the first available plate if multiple plates exist. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
IncucyteSource |
Source object for the specified plate. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the path is not a valid Incucyte archive. |
Source code in src/helper.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
create_source(filename, **kwargs)
Create an image source object based on the input file extension.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
Path to the input file or Incucyte .icarch file. |
required |
**kwargs
|
Source-specific parameters (e.g., plate_id for Incucyte). |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
ImageSource |
Source object for the input file. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the file format is unsupported. |
Source code in src/helper.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
create_writer(output_format, verbose=False)
Create a writer object and output extension based on the output format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output_format
|
str
|
Output format string. |
required |
verbose
|
bool
|
If True, enables verbose output. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
(writer object, output file extension) |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the output format is unsupported. |
Source code in src/helper.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | |
get_incucyte_plates(filename)
Get all available plate IDs from an Incucyte archive.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
Path to the Incucyte archive folder or .icarch file. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
List of plate IDs (strings) found in the archive. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the path is not a valid Incucyte archive. |
Source code in src/helper.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
ome_tiff_util
create_binaryonly_metadata(metadata_filename, companion_uuid)
Source code in src/ome_tiff_util.py
132 133 134 135 136 137 | |
create_image_metadata(source, image_name, dim_order='tczyx', image_uuid=None, image_filename=None)
Source code in src/ome_tiff_util.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
create_metadata(source, dim_order='tczyx', uuid=None, image_uuids=None, image_filenames=None, wells=None)
Source code in src/ome_tiff_util.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
create_resolution_metadata(source)
Source code in src/ome_tiff_util.py
167 168 169 170 171 | |
create_row_col_label(index, naming_convention)
Source code in src/ome_tiff_util.py
159 160 161 162 163 164 | |
create_uuid()
Source code in src/ome_tiff_util.py
19 20 | |
get_row_col_index(label)
Source code in src/ome_tiff_util.py
151 152 153 154 155 156 | |
get_row_col_len_type(labels)
Source code in src/ome_tiff_util.py
140 141 142 143 144 145 146 147 148 | |
metadata_to_dict(xml_metadata)
Source code in src/ome_tiff_util.py
12 13 14 15 16 | |
ome_zarr_util
create_axes_metadata(dimension_order)
Create axes metadata for OME-Zarr from dimension order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dimension_order
|
str
|
String of dimension characters. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
List of axis metadata dictionaries. |
Source code in src/ome_zarr_util.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
create_channel_metadata(dtype, channels, nchannels, is_rgb, window, ome_version)
Create channel metadata for OME-Zarr.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dtype
|
Numpy dtype of image data. |
required | |
channels
|
list
|
List of channel dicts. |
required |
nchannels
|
int
|
Number of channels. |
required |
window
|
tuple
|
Min/max window values. |
required |
ome_version
|
str
|
OME-Zarr version. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Channel metadata dictionary. |
Source code in src/ome_zarr_util.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
create_transformation_metadata(dimension_order, pixel_size_um, scale, translation_um=None)
Create transformation metadata (scale and translation) for OME-Zarr.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dimension_order
|
str
|
String of dimension characters. |
required |
pixel_size_um
|
dict
|
Pixel size in micrometers per dimension. |
required |
scale
|
float
|
Scaling factor. |
required |
translation_um
|
dict
|
Translation in micrometers per dimension. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
list |
List of transformation metadata dictionaries. |
Source code in src/ome_zarr_util.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
scale_dimensions_dict(shape0, scale)
Scale x and y dimensions in a shape dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shape0
|
dict
|
Original shape dictionary. |
required |
scale
|
float
|
Scaling factor. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Scaled shape dictionary. |
Source code in src/ome_zarr_util.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
scale_dimensions_xy(shape0, dimension_order, scale)
Scale x and y dimensions in a shape tuple.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shape0
|
tuple
|
Original shape. |
required |
dimension_order
|
str
|
String of dimension characters. |
required |
scale
|
float
|
Scaling factor. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
Scaled shape. |
Source code in src/ome_zarr_util.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
parameters
PYRAMID_DOWNSCALE = 2
module-attribute
PYRAMID_LEVELS = 6
module-attribute
RETRY_ATTEMPTS = 3
module-attribute
TIFF_COMPRESSION = 'LZW'
module-attribute
TILE_SIZE = 1024
module-attribute
VERSION = 'v0.1.10'
module-attribute
ZARR_CHUNK_SIZE = TILE_SIZE
module-attribute
ZARR_SHARD_MULTIPLIER = 10
module-attribute
util
convert_dotnet_ticks_to_datetime(net_ticks)
Source code in src/util.py
137 138 | |
convert_to_um(value, unit)
Source code in src/util.py
184 185 186 187 188 189 190 191 192 | |
ensure_list(item)
Source code in src/util.py
7 8 9 10 | |
get_filetitle(filename)
Source code in src/util.py
68 69 | |
get_level_from_scale(source_scales, target_scale=1)
Source code in src/util.py
54 55 56 57 58 59 60 61 | |
get_numpy_data(data, dim_order, t, c, z, y, x, y_size, x_size)
Source code in src/util.py
39 40 41 42 43 44 45 46 47 48 49 50 51 | |
get_rows_cols_plate(nwells)
Source code in src/util.py
122 123 124 125 126 127 128 129 130 131 132 133 134 | |
pad_leading_zero(input_string, num_digits=2)
Source code in src/util.py
104 105 106 107 108 109 110 111 112 113 114 | |
print_dict(value, tab=0, max_len=250, bullet=False)
Source code in src/util.py
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | |
print_hbytes(nbytes)
Source code in src/util.py
219 220 221 222 223 224 225 226 227 228 229 230 | |
redimension_data(data, old_order, new_order, **indices)
Source code in src/util.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
split_well_name(well_name, remove_leading_zeros=True, col_as_int=False)
Source code in src/util.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
splitall(path)
Source code in src/util.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
strip_leading_zeros(well_name)
Source code in src/util.py
117 118 119 | |
validate_filename(filename)
Source code in src/util.py
64 65 | |
xml_content_to_dict(element)
Source code in src/util.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | |