filenames
Auxiliary functions related to filenames of Yokogawa-microscope images.
_get_plate_name(plate_prefix)
¶
Two kinds of plate_prefix values are handled in a special way:
- Filenames from FMI, with successful barcode reading:
210305NAR005AAN_210416_164828
with plate name210305NAR005AAN
; - Filenames from FMI, with failed barcode reading:
yymmdd_hhmmss_210416_164828
with plate nameRS{yymmddhhmmss}
.
For all non-matching filenames, plate name is plate_prefix
.
PARAMETER | DESCRIPTION |
---|---|
plate_prefix |
TBD
TYPE:
|
Source code in fractal_tasks_core/cellvoyager/filenames.py
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 |
|
glob_with_multiple_patterns(*, folder, include_patterns=None, exclude_patterns=None)
¶
List all the items (files and folders) in a given folder that simultaneously match a series of glob include_patterns and do not match any of the exclude_patterns.
PARAMETER | DESCRIPTION |
---|---|
folder |
Base folder where items will be searched.
TYPE:
|
include_patterns |
If specified, the list of patterns (defined as in https://docs.python.org/3/library/fnmatch.html) that item names will match with. |
Source code in fractal_tasks_core/cellvoyager/filenames.py
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 |
|
parse_filename(filename)
¶
Parse image metadata from filename.
PARAMETER | DESCRIPTION |
---|---|
filename |
Name of the image.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
dict[str, str]
|
Metadata dictionary. |
Source code in fractal_tasks_core/cellvoyager/filenames.py
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 |
|