References
convert(input_filename, output_folder, alt_output_folder=None, output_format='omezarr2', show_progress=False, verbose=False)
Convert an input file to OME format and write to output folder(s).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_filename
|
str
|
Path to the input file. |
required |
output_folder
|
str
|
Output folder path. |
required |
alt_output_folder
|
str
|
Alternative output folder path. |
None
|
output_format
|
str
|
Output format string. |
'omezarr2'
|
show_progress
|
bool
|
If True, print progress. |
False
|
verbose
|
bool
|
If True, enable verbose logging. |
False
|
Returns:
Name | Type | Description |
---|---|---|
str |
JSON string with conversion result info array. |
Source code in converter.py
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 |
|
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
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
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
|
tuple
|
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
ISyntaxSource
Bases: ImageSource
Loads image and metadata from ISyntax format files.
Source code in src\ISyntaxSource.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 |
|
close()
Closes the ISyntax file.
Source code in src\ISyntaxSource.py
233 234 235 236 237 |
|
get_acquisitions()
Returns acquisition metadata (empty for ISyntax).
Returns:
Name | Type | Description |
---|---|---|
list |
Empty list. |
Source code in src\ISyntaxSource.py
212 213 214 215 216 217 218 219 |
|
get_channels()
Returns channel metadata.
Returns:
Name | Type | Description |
---|---|---|
list |
List of channel dicts. |
Source code in src\ISyntaxSource.py
149 150 151 152 153 154 155 156 |
|
get_columns()
Returns the list of column identifiers (empty for ISyntax).
Returns:
Name | Type | Description |
---|---|---|
list |
Empty list. |
Source code in src\ISyntaxSource.py
176 177 178 179 180 181 182 183 |
|
get_data(well_id=None, field_id=None)
Gets image data for a specific well and field.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
well_id
|
str
|
Well identifier. |
None
|
field_id
|
int
|
Field index. |
None
|
Returns:
Name | Type | Description |
---|---|---|
ndarray |
Image data. |
Source code in src\ISyntaxSource.py
91 92 93 94 95 96 97 98 99 100 101 102 |
|
get_dim_order()
Returns the dimension order string.
Returns:
Name | Type | Description |
---|---|---|
str |
Dimension order. |
Source code in src\ISyntaxSource.py
113 114 115 116 117 118 119 120 |
|
get_dtype()
Returns the numpy dtype of the image data.
Returns:
Name | Type | Description |
---|---|---|
dtype |
Numpy dtype. |
Source code in src\ISyntaxSource.py
131 132 133 134 135 136 137 138 |
|
get_fields()
Returns the list of field indices (empty for ISyntax).
Returns:
Name | Type | Description |
---|---|---|
list |
Empty list. |
Source code in src\ISyntaxSource.py
203 204 205 206 207 208 209 210 |
|
get_name()
Gets the file title.
Returns:
Name | Type | Description |
---|---|---|
str |
Name. |
Source code in src\ISyntaxSource.py
104 105 106 107 108 109 110 111 |
|
get_nchannels()
Returns the number of channels.
Returns:
Name | Type | Description |
---|---|---|
int |
Number of channels. |
Source code in src\ISyntaxSource.py
158 159 160 161 162 163 164 165 |
|
get_pixel_size_um()
Returns the pixel size in micrometers.
Returns:
Name | Type | Description |
---|---|---|
dict |
Pixel size for x and y. |
Source code in src\ISyntaxSource.py
122 123 124 125 126 127 128 129 |
|
get_position_um(well_id=None)
Returns the position in micrometers (empty for ISyntax).
Returns:
Name | Type | Description |
---|---|---|
dict |
Empty dict. |
Source code in src\ISyntaxSource.py
140 141 142 143 144 145 146 147 |
|
get_rows()
Returns the list of row identifiers (empty for ISyntax).
Returns:
Name | Type | Description |
---|---|---|
list |
Empty list. |
Source code in src\ISyntaxSource.py
167 168 169 170 171 172 173 174 |
|
get_shape()
Returns the shape of the image data.
Returns:
Name | Type | Description |
---|---|---|
tuple |
Shape of the image data. |
Source code in src\ISyntaxSource.py
82 83 84 85 86 87 88 89 |
|
get_time_points()
Returns the list of time points (empty for ISyntax).
Returns:
Name | Type | Description |
---|---|---|
list |
Empty list. |
Source code in src\ISyntaxSource.py
194 195 196 197 198 199 200 201 |
|
get_total_data_size()
Returns the estimated total data size.
Returns:
Name | Type | Description |
---|---|---|
int |
Total data size in bytes. |
Source code in src\ISyntaxSource.py
221 222 223 224 225 226 227 228 229 230 231 |
|
get_wells()
Returns the list of well identifiers (empty for ISyntax).
Returns:
Name | Type | Description |
---|---|---|
list |
Empty list. |
Source code in src\ISyntaxSource.py
185 186 187 188 189 190 191 192 |
|
init_metadata()
Initializes and loads metadata from the ISyntax file.
Returns:
Name | Type | Description |
---|---|---|
dict |
Metadata dictionary. |
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 |
|
is_screen()
Checks if the source is a plate/screen.
Returns:
Name | Type | Description |
---|---|---|
bool |
True if plate/screen. |
Source code in src\ISyntaxSource.py
73 74 75 76 77 78 79 80 |
|
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 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 |
|
data = None
instance-attribute
data_well_id = None
instance-attribute
db = DBReader(self.uri)
instance-attribute
__init__(uri, metadata={})
Initialize ImageDbSource.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
uri
|
str
|
Path to the database file. |
required |
metadata
|
dict
|
Optional metadata dictionary. |
{}
|
Source code in src\ImageDbSource.py
17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
close()
Closes the database connection.
Source code in src\ImageDbSource.py
497 498 499 500 501 |
|
get_acquisitions()
Returns acquisition metadata.
Returns:
Name | Type | Description |
---|---|---|
list |
List of acquisition dicts. |
Source code in src\ImageDbSource.py
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
|
get_channels()
Returns channel metadata.
Returns:
Name | Type | Description |
---|---|---|
list |
List of channel dicts. |
Source code in src\ImageDbSource.py
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
|
get_columns()
Returns the list of column identifiers.
Returns:
Name | Type | Description |
---|---|---|
list |
Column identifiers. |
Source code in src\ImageDbSource.py
308 309 310 311 312 313 314 315 |
|
get_data(well_id=None, field_id=None)
Gets image data for a specific well and field.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
well_id
|
str
|
Well identifier. |
None
|
field_id
|
int
|
Field index. |
None
|
Returns:
Name | Type | Description |
---|---|---|
ndarray |
Image data. |
Source code in src\ImageDbSource.py
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 |
|
get_dim_order()
Returns the dimension order string.
Returns:
Name | Type | Description |
---|---|---|
str |
Dimension order. |
Source code in src\ImageDbSource.py
344 345 346 347 348 349 350 351 |
|
get_dtype()
Returns the numpy dtype of the image data.
Returns:
Name | Type | Description |
---|---|---|
dtype |
Numpy dtype. |
Source code in src\ImageDbSource.py
353 354 355 356 357 358 359 360 |
|
get_fields()
Returns the list of field indices.
Returns:
Name | Type | Description |
---|---|---|
list |
Field indices. |
Source code in src\ImageDbSource.py
335 336 337 338 339 340 341 342 |
|
get_name()
Gets the experiment or file name.
Returns:
Name | Type | Description |
---|---|---|
str |
Name. |
Source code in src\ImageDbSource.py
287 288 289 290 291 292 293 294 295 296 297 |
|
get_nchannels()
Returns the number of channels.
Returns:
Name | Type | Description |
---|---|---|
int |
Number of channels. |
Source code in src\ImageDbSource.py
405 406 407 408 409 410 411 412 |
|
get_pixel_size_um()
Returns the pixel size in micrometers.
Returns:
Name | Type | Description |
---|---|---|
dict |
Pixel size for x and y. |
Source code in src\ImageDbSource.py
362 363 364 365 366 367 368 369 370 |
|
get_position_um(well_id=None)
Returns the position in micrometers for a well.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
well_id
|
str
|
Well identifier. |
None
|
Returns:
Name | Type | Description |
---|---|---|
dict |
Position in micrometers. |
Source code in src\ImageDbSource.py
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 |
|
get_rows()
Returns the list of row identifiers.
Returns:
Name | Type | Description |
---|---|---|
list |
Row identifiers. |
Source code in src\ImageDbSource.py
299 300 301 302 303 304 305 306 |
|
get_shape()
Returns the shape of the image data.
Returns:
Name | Type | Description |
---|---|---|
tuple |
Shape of the image data. |
Source code in src\ImageDbSource.py
45 46 47 48 49 50 51 52 |
|
get_time_points()
Returns the list of time points.
Returns:
Name | Type | Description |
---|---|---|
list |
Time point IDs. |
Source code in src\ImageDbSource.py
326 327 328 329 330 331 332 333 |
|
get_total_data_size()
Returns the estimated total data size.
Returns:
Name | Type | Description |
---|---|---|
int |
Total data size in bytes. |
Source code in src\ImageDbSource.py
432 433 434 435 436 437 438 439 |
|
get_wells()
Returns the list of well identifiers.
Returns:
Name | Type | Description |
---|---|---|
list |
Well identifiers. |
Source code in src\ImageDbSource.py
317 318 319 320 321 322 323 324 |
|
init_metadata()
Initializes and loads metadata from the database.
Returns:
Name | Type | Description |
---|---|---|
dict |
Metadata dictionary. |
Source code in src\ImageDbSource.py
31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
is_screen()
Checks if the source is a screen (has wells).
Returns:
Name | Type | Description |
---|---|---|
bool |
True if wells exist. |
Source code in src\ImageDbSource.py
262 263 264 265 266 267 268 269 |
|
print_timepoint_well_matrix()
Returns a string representation of the timepoint-well matrix.
Returns:
Name | Type | Description |
---|---|---|
str |
Timepoint-well matrix. |
Source code in src\ImageDbSource.py
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 |
|
print_well_matrix()
Returns a string representation of the well matrix.
Returns:
Name | Type | Description |
---|---|---|
str |
Well matrix. |
Source code in src\ImageDbSource.py
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 |
|
convert_dotnet_ticks_to_datetime(net_ticks)
Source code in src\util.py
66 67 |
|
convert_to_um(value, unit)
Source code in src\util.py
113 114 115 116 117 118 119 120 121 |
|
ensure_list(item)
Source code in src\util.py
6 7 8 9 |
|
get_filetitle(filename)
Source code in src\util.py
12 13 |
|
pad_leading_zero(input_string, num_digits=2)
Source code in src\util.py
48 49 50 51 52 53 54 55 56 57 58 |
|
print_dict(value, tab=0, max_len=250, bullet=False)
Source code in src\util.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
print_hbytes(nbytes)
Source code in src\util.py
148 149 150 151 152 153 154 155 156 157 158 159 |
|
split_well_name(well_name, remove_leading_zeros=True, col_as_int=False)
Source code in src\util.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
splitall(path)
Source code in src\util.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
strip_leading_zeros(well_name)
Source code in src\util.py
61 62 63 |
|
xml_content_to_dict(element)
Source code in src\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 |
|
ImageSource
ImageSource
Bases: ABC
Abstract base class for image sources.
Source code in src\ImageSource.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 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 |
|
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
9 10 11 12 13 14 15 16 17 18 |
|
close()
Close the image source.
Source code in src\ImageSource.py
183 184 185 186 187 |
|
get_acquisitions()
Get acquisition metadata.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
165 166 167 168 169 170 171 172 |
|
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
101 102 103 104 105 106 107 108 109 |
|
get_columns()
Get the list of column identifiers.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
129 130 131 132 133 134 135 136 |
|
get_data(well_id=None, field_id=None)
Get image data for a well and field.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
47 48 49 50 51 52 53 54 |
|
get_dim_order()
Get the dimension order string.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
65 66 67 68 69 70 71 72 |
|
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
74 75 76 77 78 79 80 81 |
|
get_fields()
Get the list of field indices.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
156 157 158 159 160 161 162 163 |
|
get_name()
Get the name of the image source.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
56 57 58 59 60 61 62 63 |
|
get_nchannels()
Get the number of channels.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
111 112 113 114 115 116 117 118 |
|
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
83 84 85 86 87 88 89 90 |
|
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
92 93 94 95 96 97 98 99 |
|
get_rows()
Get the list of row identifiers.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
120 121 122 123 124 125 126 127 |
|
get_shape()
Get the shape of the image data.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
38 39 40 41 42 43 44 45 |
|
get_time_points()
Get the list of time points.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
147 148 149 150 151 152 153 154 |
|
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
174 175 176 177 178 179 180 181 |
|
get_wells()
Get the list of well identifiers.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
138 139 140 141 142 143 144 145 |
|
init_metadata()
Initialize and load metadata.
Raises:
Type | Description |
---|---|
NotImplementedError
|
Must be implemented by subclasses. |
Source code in src\ImageSource.py
20 21 22 23 24 25 26 27 |
|
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
29 30 31 32 33 34 35 36 |
|
OmeTiffWriter
OmeTiffWriter
Bases: OmeWriter
Writes image data and metadata to OME-TIFF files.
Source code in src\OmeTiffWriter.py
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 |
|
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
15 16 17 18 19 20 21 22 23 |
|
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. |
{}
|
Returns:
Type | Description |
---|---|
str or list: Output file path(s). |
Source code in src\OmeTiffWriter.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
convert_dotnet_ticks_to_datetime(net_ticks)
Source code in src\util.py
66 67 |
|
convert_to_um(value, unit)
Source code in src\util.py
113 114 115 116 117 118 119 120 121 |
|
ensure_list(item)
Source code in src\util.py
6 7 8 9 |
|
get_filetitle(filename)
Source code in src\util.py
12 13 |
|
pad_leading_zero(input_string, num_digits=2)
Source code in src\util.py
48 49 50 51 52 53 54 55 56 57 58 |
|
print_dict(value, tab=0, max_len=250, bullet=False)
Source code in src\util.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
print_hbytes(nbytes)
Source code in src\util.py
148 149 150 151 152 153 154 155 156 157 158 159 |
|
split_well_name(well_name, remove_leading_zeros=True, col_as_int=False)
Source code in src\util.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
splitall(path)
Source code in src\util.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
strip_leading_zeros(well_name)
Source code in src\util.py
61 62 63 |
|
xml_content_to_dict(element)
Source code in src\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 |
|
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 |
---|---|---|
str |
str
|
Output file path(s). |
Source code in src\OmeWriter.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
OmeZarrWriter
OmeZarrWriter
Bases: OmeWriter
Source code in src\OmeZarrWriter.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 |
|
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)
Source code in src\OmeZarrWriter.py
16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
write(filepath, source, **kwargs)
Source code in src\OmeZarrWriter.py
30 31 32 33 34 35 36 37 38 39 40 41 |
|
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, 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
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 |
|
create_transformation_metadata(dimension_order, pixel_size_um, scale, translation_um={})
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. |
{}
|
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 |
|
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
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
|
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
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
|
TiffSource
TiffSource
Bases: ImageSource
Loads image and metadata from TIFF or OME-TIFF files.
Source code in src\TiffSource.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 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 |
|
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
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 |
|
close()
Closes the TIFF file.
Source code in src\TiffSource.py
311 312 313 314 315 |
|
get_acquisitions()
Returns acquisition metadata (empty for TIFF).
Returns:
Name | Type | Description |
---|---|---|
list |
Empty list. |
Source code in src\TiffSource.py
290 291 292 293 294 295 296 297 |
|
get_channels()
Returns channel metadata.
Returns:
Name | Type | Description |
---|---|---|
list |
List of channel dicts. |
Source code in src\TiffSource.py
219 220 221 222 223 224 225 226 |
|
get_columns()
Returns the list of column identifiers.
Returns:
Name | Type | Description |
---|---|---|
list |
Column identifiers. |
Source code in src\TiffSource.py
250 251 252 253 254 255 256 257 |
|
get_data(well_id=None, field_id=None)
Gets image data from the TIFF file.
Returns:
Name | Type | Description |
---|---|---|
ndarray |
Image data. |
Source code in src\TiffSource.py
162 163 164 165 166 167 168 169 170 171 172 |
|
get_dim_order()
Returns the dimension order string.
Returns:
Name | Type | Description |
---|---|---|
str |
Dimension order. |
Source code in src\TiffSource.py
183 184 185 186 187 188 189 190 |
|
get_dtype()
Returns the numpy dtype of the image data.
Returns:
Name | Type | Description |
---|---|---|
dtype |
Numpy dtype. |
Source code in src\TiffSource.py
192 193 194 195 196 197 198 199 |
|
get_fields()
Returns the list of field indices.
Returns:
Name | Type | Description |
---|---|---|
list |
Field indices. |
Source code in src\TiffSource.py
281 282 283 284 285 286 287 288 |
|
get_name()
Gets the image or plate name.
Returns:
Name | Type | Description |
---|---|---|
str |
Name. |
Source code in src\TiffSource.py
174 175 176 177 178 179 180 181 |
|
get_nchannels()
Returns the number of channels.
Returns:
Name | Type | Description |
---|---|---|
int |
Number of channels. |
Source code in src\TiffSource.py
228 229 230 231 232 233 234 235 236 237 238 239 |
|
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
201 202 203 204 205 206 207 208 |
|
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
210 211 212 213 214 215 216 217 |
|
get_rows()
Returns the list of row identifiers.
Returns:
Name | Type | Description |
---|---|---|
list |
Row identifiers. |
Source code in src\TiffSource.py
241 242 243 244 245 246 247 248 |
|
get_shape()
Returns the shape of the image data.
Returns:
Name | Type | Description |
---|---|---|
tuple |
Shape of the image data. |
Source code in src\TiffSource.py
153 154 155 156 157 158 159 160 |
|
get_time_points()
Returns the list of time points.
Returns:
Name | Type | Description |
---|---|---|
list |
Time point IDs. |
Source code in src\TiffSource.py
268 269 270 271 272 273 274 275 276 277 278 279 |
|
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
299 300 301 302 303 304 305 306 307 308 309 |
|
get_wells()
Returns the list of well identifiers.
Returns:
Name | Type | Description |
---|---|---|
list |
Well identifiers. |
Source code in src\TiffSource.py
259 260 261 262 263 264 265 266 |
|
init_metadata()
Initializes and loads metadata from the (OME) TIFF file.
Returns:
Name | Type | Description |
---|---|---|
dict |
Metadata dictionary. |
Source code in src\TiffSource.py
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 |
|
is_screen()
Checks if the source is a plate/screen.
Returns:
Name | Type | Description |
---|---|---|
bool |
True if plate/screen. |
Source code in src\TiffSource.py
144 145 146 147 148 149 150 151 |
|
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
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 |
|
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
318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
|
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 49 50 51 52 53 54 |
|
max = {}
instance-attribute
min = {}
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
47 48 49 50 51 52 53 54 |
|
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 40 41 42 43 44 45 |
|
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_source(filename)
Create an image source object based on the input file extension.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename
|
str
|
Path to the input file. |
required |
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 |
|
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
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 |
|
ome_tiff_util
create_binaryonly_metadata(metadata_filename, companion_uuid)
Source code in src\ome_tiff_util.py
116 117 118 119 120 121 |
|
create_col_row_label(index, naming_convention)
Source code in src\ome_tiff_util.py
133 134 135 136 137 |
|
create_image_metadata(source, image_uuid=None, image_filename=None)
Source code in src\ome_tiff_util.py
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 |
|
create_metadata(source, companion_uuid=None, image_uuids=None, image_filenames=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 |
|
create_resolution_metadata(source)
Source code in src\ome_tiff_util.py
140 141 142 143 144 |
|
create_uuid()
Source code in src\ome_tiff_util.py
19 20 |
|
get_col_row_type(labels)
Source code in src\ome_tiff_util.py
124 125 126 127 128 129 130 |
|
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, 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
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 |
|
create_transformation_metadata(dimension_order, pixel_size_um, scale, translation_um={})
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. |
{}
|
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 |
|
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
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
|
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
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
|
parameters
VERSION = '0.0.15'
module-attribute
util
convert_dotnet_ticks_to_datetime(net_ticks)
Source code in src\util.py
66 67 |
|
convert_to_um(value, unit)
Source code in src\util.py
113 114 115 116 117 118 119 120 121 |
|
ensure_list(item)
Source code in src\util.py
6 7 8 9 |
|
get_filetitle(filename)
Source code in src\util.py
12 13 |
|
pad_leading_zero(input_string, num_digits=2)
Source code in src\util.py
48 49 50 51 52 53 54 55 56 57 58 |
|
print_dict(value, tab=0, max_len=250, bullet=False)
Source code in src\util.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
print_hbytes(nbytes)
Source code in src\util.py
148 149 150 151 152 153 154 155 156 157 158 159 |
|
split_well_name(well_name, remove_leading_zeros=True, col_as_int=False)
Source code in src\util.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
splitall(path)
Source code in src\util.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
strip_leading_zeros(well_name)
Source code in src\util.py
61 62 63 |
|
xml_content_to_dict(element)
Source code in src\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 |
|