Run
initialize_nb(config_file)
Quick function which creates a Notebook
and adds basic_info
page before saving.
file_names
page will be added automatically as soon as basic_info
page is added.
If Notebook
already exists and contains these pages, it will just be returned.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config_file |
str
|
Path to config file. |
required |
Returns:
Type | Description |
---|---|
setup.Notebook
|
|
Source code in coppafish/pipeline/run.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
run_extract(nb)
This runs the extract_and_filter
step of the pipeline to produce the tiff files in the tile directory.
extract
and extract_debug
pages are added to the Notebook
before saving.
If Notebook
already contains these pages, it will just be returned.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
setup.Notebook
|
|
required |
Source code in coppafish/pipeline/run.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
run_find_spots(nb)
This runs the find_spots
step of the pipeline to produce point cloud from each tiff file in the tile directory.
find_spots
page added to the Notebook
before saving.
If Notebook
already contains this page, it will just be returned.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
setup.Notebook
|
|
required |
Source code in coppafish/pipeline/run.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
|
run_omp(nb)
This runs the orthogonal matching pursuit section of the pipeline as an alternate method to determine location of spots and their gene identity. It achieves this by fitting multiple gene bled codes to each pixel to find a coefficient for every gene at every pixel. Spots are then local maxima in these gene coefficient images.
omp
page is added to the Notebook before saving.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
setup.Notebook
|
|
required |
Source code in coppafish/pipeline/run.py
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 |
|
run_pipeline(config_file, overwrite_ref_spots=False)
Bridge function to run every step of the pipeline.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config_file |
str
|
Path to config file. |
required |
overwrite_ref_spots |
bool
|
Only used if Notebook contains ref_spots but not call_spots page.
If
in |
False
|
Returns:
Type | Description |
---|---|
setup.Notebook
|
|
Source code in coppafish/pipeline/run.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 |
|
run_reference_spots(nb, overwrite_ref_spots=False)
This runs the reference_spots
step of the pipeline to get the intensity of each spot on the reference
round/channel in each imaging round/channel. The call_spots
step of the pipeline is then run to produce the
bleed_matrix
, bled_code
for each gene and the gene assignments of the spots on the reference round.
ref_spots
and call_spots
pages are added to the Notebook before saving.
If Notebook
already contains these pages, it will just be returned.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
setup.Notebook
|
|
required |
overwrite_ref_spots |
bool
|
Only used if Notebook contains ref_spots but not call_spots page.
If
in |
False
|
Source code in coppafish/pipeline/run.py
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 |
|
run_register(nb)
This runs the register_initial
step of the pipeline to find shift between ref round/channel to each imaging round
for each tile. It then runs the register
step of the pipeline which uses this as a starting point to get
the affine transforms to go from the ref round/channel to each imaging round/channel for every tile.
register_initial
, register
and register_debug
pages are added to the Notebook
before saving.
If Notebook
already contains these pages, it will just be returned.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
setup.Notebook
|
|
required |
Source code in coppafish/pipeline/run.py
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 |
|
run_stitch(nb)
This runs the stitch
step of the pipeline to produce origin of each tile
such that a global coordinate system can be built. Also saves stitched DAPI and reference channel images.
stitch
page added to the Notebook
before saving.
If Notebook
already contains this page, it will just be returned.
If stitched images already exist, they won't be created again.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
setup.Notebook
|
|
required |
Source code in coppafish/pipeline/run.py
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 |
|